SSH Troubleshooting - Metawerx Java Wiki
Failed to add the host to the list of known hosts (/home/USERNAME/.ssh/known_hosts)
Connection works, but the following warning is issued
Failed to add the host to the list of known hosts (/home/USERNAME/.ssh/known_hosts)
This error occurs when:
The user's HOME folder has incorrect permissions
The user's HOME/.ssh folder or HOME/.ssh/known_hosts file has incorrect permissions (such as when the folder has been copied into location by root, or permissions have been manually set incorrectly)
To fix, execute these commands (as root) to reset the permissions to their correct values (replace USERNAME with the appropriate username)
cd ~
chown USERNAME /home/username
chown USERNAME -R /home/username/.ssh
chmod 700 /home/USERNAME/.ssh
chmod 600 /home/USERNAME/.ssh/*
Tue 03 Sep 2013 07:08:29 AM UTC - permalink -
-
http://wiki.metawerx.net/wiki/SSHTunnelTroubleshooting