|
|
|
|
|
by atoav
1660 days ago
|
|
Additionally it might be a good idea to forbid password logins altogether by adding this line in /etc/ssh/sshd_config: PasswordAuthentication no
Of course you should make really sure to actually have a working public key in your users "~/.ssh/authorized_keys" file and/or in "/root/.ssh/authorized_keys" otherwise you might lock yourself out of the server.But the point here is: given the choice, you should never log in regularily with a ssh password if you can also use a key. |
|