diff options
author | Matt Johnston <matt@ucc.asn.au> | 2008-09-18 16:01:02 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2008-09-18 16:01:02 +0000 |
commit | bece6ddcc2655846cf85b0476a6b9d0300496174 (patch) | |
tree | 2fa2c235a022644e0374932b14ba827f46dc3f93 | |
parent | f4aacaa74c948d4cae554c293f801bce2a35e452 (diff) |
Print "Login for user@host" for keyboard interactive, since it probably
isn't clear from the remote host's prompt
--HG--
extra : convert_revision : cabaf758875b341354e57def5bad3581a7da56e3
-rw-r--r-- | cli-authinteract.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli-authinteract.c b/cli-authinteract.c index 5fe5bf1..7851578 100644 --- a/cli-authinteract.c +++ b/cli-authinteract.c @@ -77,6 +77,11 @@ void recv_msg_userauth_info_request() { TRACE(("enter recv_msg_recv_userauth_info_request")) + /* Let the user know what password/host they are authing for */ + if (!cli_ses.interact_request_received) { + fprintf(stderr, "Login for %s@%s\n", cli_opts.username, + cli_opts.remotehost); + } cli_ses.interact_request_received = 1; name = buf_getstring(ses.payload, NULL); |