For all my servers PasswordAuthentication
is set to no
in the sshd_config
file. This means that only key authentication is allowed.
In this situation, is there any risk if PasswordAuthentication
is set to yes
in the client's ssh_config
?
For all my servers PasswordAuthentication
is set to no
in the sshd_config
file. This means that only key authentication is allowed.
In this situation, is there any risk if PasswordAuthentication
is set to yes
in the client's ssh_config
?
There's a risk, if the client connects to the wrong machine, and that machine allows password auth. Then the user may enter their password, thinking it might be a server side change... and now the password can be stolen.
Related: Is your SSH password revealed when you attempt to connect to the wrong server?