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

Advertisements

About professorkaos64

www.libregeek.org

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s