putty failed with "Server unexpectedly closed network connection" when using rsa
I need to connect from win to linux. Linux version is Fedora 7 and it runs on VirtualBox.
Now, if I connect with putty as usual, everything just works. But if I connect with public/private key pair, the connection crashes.
This is what putty says:
What is strange here is that it says
2009-04-02 04:16:57 Looking up host "192.168.178.33"
2009-04-02 04:16:57 Connecting to 192.168.178.33 port 22
2009-04-02 04:16:57 Server version: SSH-1.99-OpenSSH_4.5
2009-04-02 04:16:57 We claim version: SSH-2.0-PuTTY_Release_0.60
2009-04-02 04:16:57 Using SSH protocol version 2
2009-04-02 04:16:57 Doing Diffie-Hellman group exchange
2009-04-02 04:16:57 Doing Diffie-Hellman key exchange with hash SHA-256
2009-04-02 04:16:58 Host key fingerprint is:
2009-04-02 04:16:58 ssh-rsa 2048 27:94:e8:72:40:c0:5c:fc:7e:ed:72:a4:e1:7d:6b:21
2009-04-02 04:16:58 Initialised AES-256 SDCTR client->server encryption
2009-04-02 04:16:58 Initialised HMAC-SHA1 client->server MAC algorithm
2009-04-02 04:16:58 Initialised AES-256 SDCTR server->client encryption
2009-04-02 04:16:58 Initialised HMAC-SHA1 server->client MAC algorithm
2009-04-02 04:16:58 Reading private key file "E:\Putty\keys\key_priv.ppk"
2009-04-02 04:16:59 Offered public key
2009-04-02 04:16:59 Server unexpectedly closed network connection
But I just generated a 1024 key!??!
ssh-rsa 2048 27:94:e8:72:40:c0:5c:fc:7e:ed:72:a4:e1:7d:6b:21
There are various tutorials explaining how to do it, but as simple as it sounds, it just dosnt work.
This is what I did:
1. Generate RSA-Key
2. copy public key to ~/.ssh/authorized_keys
2.1 also tried authorized_keys2
3. Set private key file in putty
5. typed user name,
6. Error Message occured. So it doesnt promts me for key passphrase!
7. Looked for ./var/log/auth.log, but wasnt there
What could I do?
I just spend hours again trying to solve this problem!!
Up to now, I have no more information.