Sunday, January 11, 2015

Secure SSH Login to Your Ubuntu VPS

Change SSH Port to something else.

Using something other than the default Port 22 for the ssh server can help avoid attacks by script kiddies. To do so, run command to edit the ssh config file:


mahesh@mknsoft.com ~
[09:41:40]⌘  vim /etc/ssh/sshd_config


Find out Port 22, change to Port 22222 or any other number between 1024 and 65536. After this step, you can do SSH access by running below command:


mahesh@mknsoft.com ~
[09:42:40]⌘  ssh 192.168.1.100 -l root -p 22222


No comments:

Post a Comment