Loading...

Knowledge Base

How To Configure SSH Server on Centos

To configure your SSH Server you will need to edit /etc/ssh/sshd_config using the following command:

# vi /etc/ssh/sshd_config
  • To disable root logins, edit or add the following line:
    PermitRootLogin no
    
  • To allow only specific users over SSH edit or add the following line: <
    AllowUsers ryan chris
    
  • Change the listening port of SSH service edit or add the following line:
    Port 11111
    

Save and quit the SSH configuration file and restart the SSH service to reflect the changes by using the following command:

# service sshd restart

Congratulations, you have configured the SSH Server on CentOS VPS.

Did you find this article helpful?

 
* Your feedback is too short

Loading...