Skip to the content
Cloudfanatic Knowledge baseCloudfanatic Knowledge base
  • Home
  • Log In
  • System Status
  • Home
  • Log In
  • System Status

How can we help?

e.g. ssh keys, set up mysql, ubuntu 22 mysql php nginx, account settings

Account Functions

  • Upload an ISO for your 10Gbps cloud server
  • Difference between Snapshots and Backups
  • Advanced management for 10Gbps cloud servers
  • Controlling your 10Gbps instance
  • Your Dashboard
  • Accessing your server for the first time
  • Controlling your Standard instance
  • Cloudfanatic Operating systems and Rebuilding your instance
  • DNS Manager
  • Custom ISO images

Sales & Billing

  • Cloudfanatic Crypto Payments
  • Frequently Asked Questions (FAQ)
  • Server billing
  • Automatic billing for your account
  • Server Upgrades
  • Cloudfanatic Affiliate Program
  • Automated Server backups

News & Announcements

  • Ubuntu 24.04 now generally available for all servers
  • OpenSuse now generally available for 10Gbps instances
  • Debian 12 now generally available for all instances
  • RockyLinux 9 now generally available for all instances
  • AlmaLinux 9 now generally available for all instances
  • Servercheap is now Cloudfanatic and more news
  • Ubuntu 22 now generally available for all instances
  • Cloudfanatic/Servercheap has been featured on HostAdvice
  • New 1-Click App – CyberPanel
  • New location: North Carolina
  • Cloudfanatic/Servercheap has been featured on Hostingadvice.com
  • Centos Stream now generally available for all instances
  • Cloudfanatic receives an additional new direct IP allocation from ARIN
  • Cloudfanatic is Introducing 1-Click Apps

Tutorials

  • DNS Manager
  • Accessing your server for the first time
  • Create passwordless login with SSH keys and PUTTY
  • How to copy my files to and from a linux vps
  • Ubuntu UFW Cheat sheet
  • Firewalld Cheat Sheet
  • Change SSH Port on Ubuntu 20/22
  • Change SSH Port on Debian 10/11
  • Change SSH Port on Almalinux
  • Secure Apache with Let’s Encrypt on Ubuntu 22.04
  • Setup Apache and Virtual Hosts on Ubuntu 22
  • Controlling your Standard instance
  • Home
  • Docs
  • Tutorials
  • Change SSH Port on Debian 10/11

Change SSH Port on Debian 10/11

Overview #

In this short tutorial you will learn how to change your SSH port from the default 22 to another port. This is a recommended step during any initial server hardening. Cloudfanatic’s Debian 10 and 11 operating systems do not come with a firewall by default so the process is very straight forward.

Instructions for Ubuntu

Instructions for Almalinux

Changing the SSH Port: #

Edit your ssh configuration file:

nano /etc/ssh/sshd_config
  • Find line: #Port 22
  • Uncomment the line
  • Change 22 to your desired port number
  • Save the file
  • Restart SSH service
systemctl restart ssh

That should be all. Try and ssh into your server on your new port.

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
Still stuck? How can we help?

How can we help?

Updated on November 1, 2022
Change SSH Port on Ubuntu 20/22Change SSH Port on Almalinux

Powered by BetterDocs

Table of Contents
  • Overview
  • Changing the SSH Port:

© 2025 Cloudfanatic Knowledge base

Powered by WordPress

To the top ↑ Up ↑