diff options
author | lns <matzeton@googlemail.com> | 2018-08-10 11:41:10 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2018-08-10 11:41:10 +0200 |
commit | 98c853efc489b3545ba7ee8130589a74e73f23d5 (patch) | |
tree | ccc708eb5e64a21cf14c2310b0c6c584e1245991 | |
parent | 62182af92a4de31578400c729767a0ae11ed6ae6 (diff) |
log notice if client wants to use AUTH_METHOD_NONE(1) e.g. when reading the ssh banner
Signed-off-by: lns <matzeton@googlemail.com>
-rw-r--r-- | src/protocol_ssh.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/protocol_ssh.c b/src/protocol_ssh.c index 7d6e935..5564cc8 100644 --- a/src/protocol_ssh.c +++ b/src/protocol_ssh.c @@ -594,6 +594,15 @@ static int authenticate(ssh_session session, ssh_login_cache *cache) break; case SSH_AUTH_METHOD_NONE: + N("SSH: User '%s' wants to auth with method '%d': NONE", + ssh_message_auth_user(message), + ssh_message_subtype(message)); + ssh_message_auth_set_methods(message, + SSH_AUTH_METHOD_PASSWORD | + SSH_AUTH_METHOD_INTERACTIVE); + ssh_message_reply_default(message); + break; + default: N("SSH: User '%s' wants to auth with unknown auth '%d'", ssh_message_auth_user(message), |