Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.
$ ssh usaname@login.somehost.no

Could not create directory'/cygdrive/c/Documents and Settings/vidar kongsli/.ssh'.
The authenticity of host 'login.somehost.no (...)' can't be established.
RSA key fingerprint is ....
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.

$ set | grep HOME


$ ls ~/.ssh

id_rsa  id_rsa.pub

Any idea why ssh does not use the $HOME environment variable when it tries to locate ~/.ssh?

(edit: fixed formatting)

share|improve this question

migrated from stackoverflow.com Dec 18 '09 at 17:19

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Have a look at /etc/passwd. Make sure the entry there matches your expected home directory. It's the second to last field for your user's entry.

share|improve this answer

Is the variable HOME exported? Try: export HOME then ssh again.

share|improve this answer

Your Answer


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