Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] No access as normal user to my own.ssh-folder
Date: Wed, 26 Sep 2007 19:41:15
Message-Id: 200709262016.31870.michaelkintzios@gmail.com
In Reply to: [gentoo-user] No access as normal user to my own.ssh-folder by Herbert Laubner
1 On Wednesday 26 September 2007, Herbert Laubner wrote:
2 > I want to connect to another machine in my local network using ssh. Somehow
3 > I do not get it managed to write the fingerprint to the .ssh/known_hosts
4 > because of missing rights.
5 >
6 > herbert@windose ~ $ ssh 192.168.0.50
7 > The authenticity of host '192.168.0.50 (192.168.0.50)' can't be
8 > established. RSA key fingerprint is
9 > c5:1f:98:93:f3:30:01:b1:95:3e:30:40:47:ef:97:35. Are you sure you want to
10 > continue connecting (yes/no)? yes
11 > Failed to add the host to the list of known hosts
12 > (/home/herbert/.ssh/known_hosts).
13 > Password:
14 > Last login: Wed Sep 26 20:37:42 2007 from 192.168.0.20
15 > Welcome to Darwin!
16 > rlbk-hmbg-de01:~ herbert$ exit
17 > logout
18 > Connection to 192.168.0.50 closed.
19 >
20 > herbert@windose ~ $ ls -al /home/herbert/.ssh/
21 > ls: Zugriff auf /home/herbert/.ssh/. nicht möglich: Keine Berechtigung
22 > ls: Zugriff auf /home/herbert/.ssh/known_hosts nicht möglich: Keine
23 > Berechtigung
24 > ls: Zugriff auf /home/herbert/.ssh/.. nicht möglich: Keine Berechtigung
25 > insgesamt 0
26 > d????????? ? ? ? ? ? .
27 > d????????? ? ? ? ? ? ..
28 > d????????? ? ? ? ? ? known_hosts
29 >
30 > I think, it has to be a stupid mistake. I did
31 > windose ~ # chown herbert /home/herbert/.ssh
32 > windose ~ # chgrp users /home/herbert/.ssh
33 >
34 > but this did not help??
35
36 I cannot see what your access rights are (all I got was "?" as shown above).
37 Add -r to chgrp to recursively change the files under it. Finally, if the
38 character "d" is correct for directory, then your known_hosts is not a file
39 as it should be, but perhaps by mistake you created it as a directory and
40 have not adapted your ssh_config, or ~/.ssh/config to reflect that.
41
42 HTH.
43 --
44 Regards,
45 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] No access as normal user to my own.ssh-folder [SOLVED] Herbert Laubner <laubner@×××.net>