mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-28 15:24:49 -05:00
Public key authentication now works in pscp too - oops
[originally from svn r574]
This commit is contained in:
parent
1791da274c
commit
263d9e0f09
2
ssh.c
2
ssh.c
@ -1204,7 +1204,7 @@ static int do_ssh1_login(unsigned char *in, int inlen, int ispkt)
|
||||
if (*cfg.keyfile && !tried_publickey)
|
||||
pwpkt_type = SSH1_CMSG_AUTH_RSA;
|
||||
|
||||
if (IS_SCP) {
|
||||
if (pwpkt_type == SSH1_CMSG_AUTH_PASSWORD && IS_SCP) {
|
||||
char prompt[200];
|
||||
sprintf(prompt, "%s@%s's password: ", cfg.username, savedhost);
|
||||
if (!ssh_get_password(prompt, password, sizeof(password))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user