Topic "Problem with ssh using RSA authentication on Windows 7"

Author Message
sarthakjain
[View user's profile]

Joined: 2010-06-23
Posts: 1
I am working on a 64-bit windows 7 machine.

I have installed ssh on my machine through cygwin.

I am trying to connect an XP machine to this windows7 machine through SSH using RSA authentiation..I am proceeding as follows:

1. On the XP machine, I create an RSA public/private key pair using the command

ssh-keygn -t rsa

following 2 files get created at ~/.ssh/ location :

id_rsa and id_rsa.pub

2. Next I copy the id_rsa.pub file on my windows7 machine.

3. Then I append the contents of id_rsa.pub to the file ~/.ssh/authorized_keys on the windows7 machine.

cd ~/.ssh

cat id_rsa.pub >> authorized_keys

chmod 600 authorized_keys

chmod 755 ~/.ssh

4. I restart the sshd service on this machine

5. I try to ssh from the XP machine to the win7 machine.



I am observing the following output:

...

..

..

debug1: Offering public key: /home/Administrator/.ssh/id_rsa

debug2: We sent a public key packet, wait for reply

connection closed by xx.xx.xx.xx



Plz help!!!!!!!!!!!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please post a full log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
_________________
Martin Prikryl
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License