I'm trying to establish an SSH connection with my school's server. I have already created the public-private key pair.

I can connect to the server only using gitbush (mingw32) and everything seems fine. But when using cygwin terminal I get:

$ ssh user@a.b.com
The authenticity of host '*************' can't be established.
RSA key fingerprint is ***********************.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.

It seems that cygwin can't find my private key.

Note: I used mingw to generate the key pair.

link|improve this question
You have to copy your key to the folder within Cygwin so the SSH process knows where to find it. .ssh/authorized_keys under your cygwin folders. – skub Jan 18 at 20:48
If it still doesn't detect, you can specify the private key file location with -i option. – Bibhas Jan 18 at 20:56
I copied/pasted the files in the cygwin folder but the error remains. I have 3 files in my .ssh folder (id_rsa, id_rsa.pub. known_hosts) – Florenc Jan 18 at 20:57
i give "$ ssh -i /home/user/.ssh/id_rsa user@host" and i get "Warning: Identity file /home/user/.ssh/id_rsa not accessible: No such file or directory." I get the same even when using the absolute path. – Florenc Jan 18 at 21:22
Path of least resistance would be to regen the keys in cygwin ssh and then copy them over to gitbush. – skub Jan 19 at 0:33
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.