Change SSH default port
Applies to
GNU\Linux Debian Based distributions such as Ubuntu, Elementary, …
Solution
Create a backup of your default configuration file
cp /etc/ssh/sshd_config /etc/ssh/sshd_config_backup
Edit the configutation file
nano /etc/ssh/sshd_config
Change the port number (make sure it’s not already in use)
Port 12345
Save your modification (CTRL + O under nano) and close (CTRL + X)
Restart SSH deamon (See : Restart SSH Service)
You may also have to change your firewall configuration to allow port connection…
Source
http://kb.liquidweb.com/changing-the-ssh-port/
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.