$ 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
HOME=/cygdrive/d/home/vidar
HOMEDRIVE=C:
HOMEPATH=/cygdrive/d/home/vidar
$ ls ~/.ssh
id_rsa id_rsa.pub
知道为什么ssh尝试定位〜/ .ssh时不使用$ HOME环境变量吗?
(编辑:固定格式)
HOME
为%USERPROFIEL%
in环境变量。因此... / home / <myusername>尚未创建(/etc/passwd cannot be found
)。并且无法在%USERPROFILE%中使用ssh键。db_home: /%H
完美解决问题。非常感谢!