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

That’s it!



About professorkaos64

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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s