=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sshconnect.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/ssh/sshconnect.c 1999/09/28 04:45:37 1.3 +++ src/usr.bin/ssh/sshconnect.c 1999/09/29 15:52:55 1.4 @@ -15,7 +15,7 @@ */ #include "includes.h" -RCSID("$Id: sshconnect.c,v 1.3 1999/09/28 04:45:37 provos Exp $"); +RCSID("$Id: sshconnect.c,v 1.4 1999/09/29 15:52:55 provos Exp $"); #include #include "xmalloc.h" @@ -1400,10 +1400,13 @@ if ((supported_authentications & (1 << SSH_AUTH_PASSWORD)) && options->password_authentication && !options->batch_mode) { + char prompt[80]; + snprintf(prompt, sizeof(prompt), "%.30s@%.30s's password: ", + server_user, host); debug("Doing password authentication."); if (options->cipher == SSH_CIPHER_NONE) log("WARNING: Encryption is disabled! Password will be transmitted in clear text."); - password = read_passphrase("Password: ", 0); + password = read_passphrase(prompt, 0); packet_start(SSH_CMSG_AUTH_PASSWORD); packet_put_string(password, strlen(password)); memset(password, 0, strlen(password));