cygWin connect by SSH using RSA key; ssh.exe couldn't create /home/user/.ssh

Posted by Kirzilla on Server Fault See other posts from Server Fault or by Kirzilla
Published on 2010-03-30T10:08:32Z Indexed on 2010/03/30 10:23 UTC
Read the original article Hit count: 384

Filed under:
|

Hello,

I'm using Win XP and I'm trying to connect by SSH to remote host using RSA key.

I've investigated that cygWin recognizes Documents and Settings dir as home directory

Z:\app\cwRsync\bin>cygpath -H
/cygdrive/c/Documents and Settings

I've created .ssh directory in Documents and Settings/user/.ssh and moved known_hosts, id_rsa, id_rsa.pub there.

Now, I'm trying to connect via ssh.exe to remote host

Z:\app\cwRsync\bin>ssh -p 22 [email protected]
Could not create directory '/home/user/.ssh'.
The authenticity of host '[remotehost.com]:22 ([remotehost.com]:22)' can't be established.
RSA key fingerprint is f7:f4:2c:e0:c6:7e:d2:a4:45:70:63:df:bf:f2:84:46.
Are you sure you want to continue connecting (yes/no)?

What I'm doing wrong? Why ssh.exe couldn't create directory /home/user/.ssh?

Thank you.

© Server Fault or respective owner

Related posts about ssh

Related posts about cygwin