How-To Session: Changing your default SSH port
Many times users on forums ask the question: “How can I change my default port for SSH?” Why you ask? Well, often times port 22 is taken up by another computer in you household, i.e. another linux computer.
First make sure you have SSH:
- dpkg -s ssh
If not type this into Terminal
- sudo apt-get install ssh
Now, open up Terminal and type
- sudo nano /etc/ssh/sshd_config
- Change the “port” to a higher level port of your choosing such as 4444
- Save the changes and quit nano
On your router be sure to forwad port “4444” or whichever port you chose to your pc, most typically 19.2.168.1.XXX
That’s it!
-Nano
Posted on 20090318, in How-To and tagged change default port in linux, Change default port in Ubuntu, change SSH default port, SSH. Bookmark the permalink. 3 Comments.
Pingback: How-To Session: SSH into another Linux PC « The_Linux_Cauldron
Pingback: How-To Session: SSH into another Linux Machine « The_Linux_Cauldron
Pingback: aeschma.de » SSH