From 661d8ca225dd37916ed23b3d14ec96c979836d17 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 11 Oct 2021 15:12:22 +0800 Subject: [PATCH] Add a comment about sending initial auth request --- cli-session.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli-session.c b/cli-session.c index 699286d..0ca0230 100644 --- a/cli-session.c +++ b/cli-session.c @@ -245,6 +245,9 @@ static void cli_sessionloop() { /* We've got the transport layer sorted, we now need to request * userauth */ send_msg_service_request(SSH_SERVICE_USERAUTH); + /* We aren't using any "implicit server authentication" methods, + so don't need to wait for a response for SSH_SERVICE_USERAUTH + before sending the auth messages (rfc4253 10) */ cli_auth_getmethods(); cli_ses.state = USERAUTH_REQ_SENT; TRACE(("leave cli_sessionloop: sent userauth methods req"))