1
I'm trying to connect to a remote machine using Cygwin, the connection is successful problem is that it always asks me for the password.
ssh -i ~/.ssh/id_rsa -o "StrictHostKeyChecking no" user@machine.net 'echo test'
Do you know How I can login to remote server using Cygwin without password getting asked?
BTW - I tried to put the private key from the remote machine on the Cygwin machine, Added the remote machine to the known_host file
First of all thanks for the reply, So in my private user .ssh folder (C:\Users\Private_user.ssh) I should have: id_rsa (the private key from client/remote machine) , known_hosts , authorized_keys (With the public key from client/remote machine in it )? is that enough for "silent" login? and if I'm using CYGWIN as I mentioned should I put this .ssh folder inside: C:\cygwin64\home\Private_user.ssh ? – Shachar Hamuzim Rajuan – 2016-05-23T11:57:57.833
On the client, you need the
id_rsa
file (and optionally its correspondingid_rsa.pub
). On the server, you don't need any private keys – onlyauthorized_keys
with a copy of the public key. (I'm not sure how Cygwin paths translate to Windows paths, but you can just run a Cygwin shell and access~/.ssh/
from there.) – user1686 – 2016-05-23T13:21:31.727mmm....I did as you said, for some reason it keeps asking me for the password. trying to access vice versa from the WINDOWS to the LINUX it doesn't ask me for any password. – Shachar Hamuzim Rajuan – 2016-05-23T13:57:59.180