Th3den’s Weblog

Blog for All

change ssh port to make it secure

Posted by th3den on June 1, 2011

we can remote another computer on same network using ssh, but if there is someone else who knows the password on the computer so he can also do remote acces to the computer. so we have to change some settings by replacing the existing ports so other people will not easy to access the destination computer

  1. open file sshd_config
    sudo nano /etc/ssh/sshd_config
  2. find text
    Port 22
    change with
    Port 2222 / another port number
  3. find text
    PermitRootLogin yes
    Chenge with:
    PermitRootLogin no
    this setting will not permit root as default login
    5. save by
    ctrl+x press y then enter
    6. restart ssh lo
    sudo /etc/init.d/ssh restart

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

%d bloggers like this: