Topic "login error when pageant has 2 keys stored"

Author Message
[View user's profile]

Joined: 2007-07-31
Posts: 1
Location: Germany

I have a problem with 3.8.2 and 4.0.3. If I load only one key in pageant I can login to an AIX machine.
If pageant has 2 keys in memory, the connection fails.
Strangely enough this only happens for one machine, a similar machine with same AIX (5200-02) and sshd version does not exhibit this behaviour, I can login there even if pageant has 2 keys in memory.
In "View keys" the wrong key which does not match the public key on AIX is listed first, but I cannot tell if this matches the "key #0" from the logfile below (although I guess so):


Connecting to port 22
Server version: SSH-1.99-OpenSSH_3.4p1
We claim version: SSH-2.0-WinSCP_release_4.0.3
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange
Host key fingerprint is:
ssh-rsa 1024  xx:xx:...
Initialised AES-256 client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "root".
Reading private key file "C:\home\ths\username.ppk"
Pageant is running. Requesting keys.
Pageant has 2 SSH-2 keys
Trying Pageant key #0
Server unexpectedly closed network connection
(ESshFatal) Server unexpectedly closed network connection
Authentication log (see session log for details):
Using username "root".

Authentication failed.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
It is possible that the server does not allow you more that one authentication attempt. Try to specify the correct key explicitly on login dialog.
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License