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


2 comments:

  1. I liked your work and the way in which you have shared this article here about vps. It is a beneficial and helpful article for us. Thanks for sharing an article like this.

    ReplyDelete
  2. A VPS will allow for more flexibility and easier scalability as you expand your business. In addition, the low cost of using a VPS makes this option affordable for nearly any enterprise. If you are in need of a hosting service for your business, you will want to consider a virtual private server. Best Windows 10 VPS

    ReplyDelete