I run a debian etch 2.6.18-4-686 and it's not the fist time after i have set permissions in my user home dir .ssh 0600 to see this:
Code:
gabrix@www:~$ ls -la .ssh/
total 0
?--------- ? ? ? ? ? .ssh/.
?--------- ? ? ? ? ? .ssh/..
?--------- ? ? ? ? ? .ssh/authorized_keys
?--------- ? ? ? ? ? .ssh/known_hosts
This after i ssh-keygened sshkeys and set permissions :
Code:
root@www:~# chmod 0600 .ssh/ -R
I show you some more :
Setting keys up ....
Quote:
gabrix@www:~$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/gabrix/.ssh/id_dsa):
Created directory '/home/gabrix/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
open /home/gabrix/.ssh/id_dsa failed: Permission denied.
Saving the key failed: /home/gabrix/.ssh/id_dsa.
|
ok because the permissions on the newly created .ssh dir is:
Quote:
d--------- 2 gabrix gabrix 4096 2007-05-30 02:04 .ssh
|
I try to adjust permissions with chmod as root in my user dir ...
i switch back to the dir's user
Quote:
gabrix@www:~$ ls -la .ssh/
total 16
drwxr-xr-x 2 gabrix gabrix 4096 2007-05-30 02:10 .
drwxr-xr-x 45 gabrix gabrix 4096 2007-05-30 02:04 ..
---------- 1 gabrix gabrix 672 2007-05-30 02:10 id_dsa
----r--r-- 1 gabrix gabrix 600 2007-05-30 02:10 id_dsa.pub
|
... and again:
result:
Quote:
gabrix@www:~$ ls -la .ssh/
total 0
?--------- ? ? ? ? ? .ssh/.
?--------- ? ? ? ? ? .ssh/..
?--------- ? ? ? ? ? .ssh/id_dsa
?--------- ? ? ? ? ? .ssh/id_dsa.pub
|
What's going on ???????