cPanel Server Management
For 24×7 cPanel Server Management with Monitoring, Unlimited Tech Support, Disaster Recovery, Security updates and much more Signup today!
How to disable public key authentication in SSH
SSH in most system by default allow login using public key. While this is convenient, it is a security risk when unauthorized person manage to get the private key, especially when the key is not protected by any passphrase. The option to allow public key authentication is PubkeyAuthentication in the /etc/ssh/sshd_config configuration file.
In order to disable public SSH key authentication, Edit configuration file and change this settings.
vi /etc/ssh/sshd_config
PubkeyAuthentication no
Reload SSH service
To have the changes take effect, the SSH daemon need to reload the edited configuration file with the following command;
/etc/init.d/sshd reload
Use this knowledgebase to reset SSH default port
cPanel Server Management
AssistanZ is a pioneer in offering 24×7 cPanel Server Management Service since 2004. We offer 24×7 cPanel Server Management
cPanel Server Management
cPanel Installation and Setup
cPanel Server Optimization
cPanel Server Migration
cPanel Server Security and Hardering
cPanel Server Monitoring
cPanel Server Hack Recovery
and Much more