If you need to disable shell access for a particular user, that can be done by editing the line for that user in the /etc/passwd file. So if we needed [ … ]
Tag: ssh
Force cPanel to update from the command line
There are times when you try to update cPanel from the UI and it will fail or will hang. When this happens, you are able to force the update from [ … ]
How to change your SSH port on CentOS
To change your SSH port on CentOS you can first edit the sshd_config file located in /etc/ssh/sshd_config. nano /etc/ssh/sshd_config Once you open that up the port line should be commented [ … ]
Restart the SSH service from the command line
To restart the ssh service, you will need to be logged in as root, then you can run service sshd restart or you could alternatively use /etc/init.d/sshd restart
How to disable root access to SSH
In order to disable root access to SSH you’ll need to edit the sshd_config file. So open it up with your favorite text editor.. nano /etc/ssh/sshd_config The line we are [ … ]