How-To Session: Changing your default SSH port

ssh

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

About professorkaos64

www.libregeek.org

Posted on 20090318, in How-To and tagged , , , . Bookmark the permalink. 3 Comments.

Leave a comment