1 |
On Wednesday 26 September 2007, Herbert Laubner wrote: |
2 |
> I want to connect to another machine in my local network using ssh. |
3 |
> Somehow I do not get it managed to write the fingerprint to the |
4 |
> .ssh/known_hosts 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 |
10 |
> want to 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 |
22 |
> Berechtigung ls: Zugriff auf /home/herbert/.ssh/known_hosts nicht |
23 |
> möglich: Keine Berechtigung |
24 |
> ls: Zugriff auf /home/herbert/.ssh/.. nicht möglich: Keine |
25 |
> Berechtigung insgesamt 0 |
26 |
> d????????? ? ? ? ? ? . |
27 |
> d????????? ? ? ? ? ? .. |
28 |
> d????????? ? ? ? ? ? known_hosts |
29 |
|
30 |
Ouch. That's file system corruption. You need to fsck that disk right |
31 |
now. I once saw similar stuff on a reiser filesystem and the only thing |
32 |
that helped was --rebuild-tree. Good luck on your end. |
33 |
|
34 |
> I think, it has to be a stupid mistake. I did |
35 |
> windose ~ # chown herbert /home/herbert/.ssh |
36 |
> windose ~ # chgrp users /home/herbert/.ssh |
37 |
> |
38 |
> but this did not help?? |
39 |
|
40 |
Two reasons: |
41 |
|
42 |
1. You only chowned the directory itself, not the files in it. What you |
43 |
probably wanted was |
44 |
|
45 |
chown -R herbert:users /home/herbert/.ssh |
46 |
|
47 |
2. The filesystem metadata is corrupt, so you wont be able to do |
48 |
anything in that directory anyway. |
49 |
|
50 |
alan |
51 |
|
52 |
|
53 |
-- |
54 |
Optimists say the glass is half full, |
55 |
Pessimists say the glass is half empty, |
56 |
Developers say wtf is the glass twice as big as it needs to be? |
57 |
|
58 |
Alan McKinnon |
59 |
alan at linuxholdings dot co dot za |
60 |
+27 82, double three seven, one nine three five |
61 |
-- |
62 |
gentoo-user@g.o mailing list |