Setting Up public key on Windows for ssh/scp

Hi,

I am trying to scp a file from our Unix server to the local Windows machine.I have created the key pair in Unix server using ssh-keygen command in unix.

But I am not sure where can we put the public key(generated on Unix) in Windows machine so that scp from Unix machine to Windows is possible.In fact, my intention is to write a shell script which automates the file transfer to Windows using scp.Is there any such directories/files will be creating by Putty tool for putting the public keys?Eventhough I couldn't find that , I found some entries in Registry for that which I am not quite sure of how to add that.

I could do the otherway round (scp from Windows to Unix) successfully by creating key pair using Putty -keygen in Windows and adding the public key in Unix server in the ~/.ssh/authorized_keys file.

Any ideas? I heard that if I install openSSH s/w in Windows, which will create file like authorised_keys in Windows where we can put the public key we generated in Unix.But due to certain limitations, I can't install that s/w in Windows.

Thank you.

The public key goes into the user's home directory. It makes no difference if it is Windows or a Unix-like system

blowtorch,
ok..If that is the case, which should be the file we have to add the public key in the home directory in Windows? In UNIX, we have .ssh directory for this and known_hosts and authorized_keys available for adding hosts and public key resp.

You have to follow the same procedure with Windows too. You need not add anything to the known_hosts file, as this will get added the first time you connect to the remote server.