From 263d9e0f0992a2fabae6ce7f3a0a2d1b4fdba935 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 8 Sep 2000 08:33:52 +0000 Subject: [PATCH] Public key authentication now works in pscp too - oops [originally from svn r574] --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index 7511e085..49984767 100644 --- a/ssh.c +++ b/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))) {