To add any user to do ssh login in Linux
Edit (as root)
/etc/ssh/sshd_config
. Append the following to it:It will permit root user to login ssh but only allow the "testusr" to login ssh.Port 1234 PermitRootLogin no AllowUsers testusr
If you want allow root ,
PermitRootLogin yes
Then restart ssh
service ssh restart
No comments