On Wednesday 26 September 2007, Herbert Laubner wrote: > I want to connect to another machine in my local network using ssh. Somehow > I do not get it managed to write the fingerprint to the .ssh/known_hosts > because of missing rights. > > herbert@windose ~ $ ssh 192.168.0.50 > The authenticity of host '192.168.0.50 (192.168.0.50)' can't be > established. RSA key fingerprint is > c5:1f:98:93:f3:30:01:b1:95:3e:30:40:47:ef:97:35. Are you sure you want to > continue connecting (yes/no)? yes > Failed to add the host to the list of known hosts > (/home/herbert/.ssh/known_hosts). > Password: > Last login: Wed Sep 26 20:37:42 2007 from 192.168.0.20 > Welcome to Darwin! > rlbk-hmbg-de01:~ herbert$ exit > logout > Connection to 192.168.0.50 closed. > > herbert@windose ~ $ ls -al /home/herbert/.ssh/ > ls: Zugriff auf /home/herbert/.ssh/. nicht möglich: Keine Berechtigung > ls: Zugriff auf /home/herbert/.ssh/known_hosts nicht möglich: Keine > Berechtigung > ls: Zugriff auf /home/herbert/.ssh/.. nicht möglich: Keine Berechtigung > insgesamt 0 > d????????? ? ? ? ? ? . > d????????? ? ? ? ? ? .. > d????????? ? ? ? ? ? known_hosts > > I think, it has to be a stupid mistake. I did > windose ~ # chown herbert /home/herbert/.ssh > windose ~ # chgrp users /home/herbert/.ssh > > but this did not help?? I cannot see what your access rights are (all I got was "?" as shown above). Add -r to chgrp to recursively change the files under it. Finally, if the character "d" is correct for directory, then your known_hosts is not a file as it should be, but perhaps by mistake you created it as a directory and have not adapted your ssh_config, or ~/.ssh/config to reflect that. HTH. -- Regards, Mick