I am logged into a win2008 box, I run scp
with the -i option that points to the directory where the private key resides on the win2008 box.
scp -i "cygdrive/c/users/userid/privkey..." user@linux:/dirA/dirB/* .
When I run this command on the win2008 box it logs into the Linux box, matches the keys and sends the files over to the win2008 box. If I don't specify the key, it prompts me for a password.
I generated the keys on the win2008 box using ssh-keygen. I added the Linux key in the winsshd setup under public keys. Then I took the key from the ssh-keygen and put it on the Linux box.
Where is the scp command looking for the key? How can I run scp
from the win2008 box without passing the key as a parameter?