summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-09-18 16:01:02 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-09-18 16:01:02 +0000
commit0584de1a4f903a8f466bf1086c10c1ae5dd0b037 (patch)
tree2fa2c235a022644e0374932b14ba827f46dc3f93
parente4305c5d436c2672477cbf52d35394b06cd2a0b1 (diff)
downloaddropbear-0584de1a4f903a8f466bf1086c10c1ae5dd0b037.tar.gz
Print "Login for user@host" for keyboard interactive, since it probably
isn't clear from the remote host's prompt
-rw-r--r--cli-authinteract.c5
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);