Resolving SSH permission error with local LIST OF KNOWN HOSTS.
ssh,permission,connect,failed,add host,known hosts,list,user,UserKnownHostsFile,solution
Problem:
[user@hosting ~]$ ssh www.example.com
The authenticity of host 'www.example.com (123.45.67.89)' can't be established.
DSA key fingerprint is 12:34:56:78:90:aa:bb:cc:dd:ee:ff:1a:2b:3c:4d:5e.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/.ssh/known_hosts).
Password:
Password:
Password:
...
It's becouse you have no permissions to write into /home/.ssh/
Solution:
Just find that dir, where you have write permission: (f.ex) /home/user/
ssh -o UserKnownHostsFile=/home/user/.known www.example.com -l user
/home/user/.known (UserKnownHostsFile) file will be created (appended).
2009-09-03, Uzaren