2

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?

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232
NoExpert
  • 489
  • Could you possibly explain what you mean by "risk" and whether your concern is regarding some risk on the server or on the client side of things? – Kusalananda Mar 30 '19 at 21:51
  • 1
    Hi kusalananda. What I had in mind was a (theoretical or not) risk to the client. – NoExpert Mar 30 '19 at 21:53

1 Answers1

4

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?