Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just installed Cygwin, and openssh ignores the known_hosts file. My guess is that openssh does not even see the ~/.ssh folder. I've defined a Windows environment variable HOME, and Cygwin does start in %HOME%. The permissions on ~/.ssh are 600, and permissions inside ~/.ssh are 600 for everything except that known_hosts and *.pub are 644. All i get is

$ ssh -vvv -Y foo
OpenSSH_6.1p1, OpenSSL 1.0.1c 10 May 2012
debug2: ssh_connect: needpriv 0
ssh: Could not resolve hostname learnlab: hostname nor servname provided, or not known

Note that I don't have the line debug1: Reading configuration data /etc/ssh/ssh_config, and what's even odder, Cygwin doesn't install /etc/ssh.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

It turned out I had to not only set %HOME%, but also to create a mount point for /home/myhome.

$ cat /etc/fstab.d/myhome 
c:/Users/myhome/My\040Documents /home/myhome    ntfs    binary  0       0
share|improve this answer
    
Please mark this answer as accepted. –  neersighted Dec 22 '12 at 16:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.