[CentOS] 2 SSH questions

Tue Jan 10 23:15:22 UTC 2006
Robert Moskowitz <rgm at htt-consult.com>

At 02:45 PM 1/10/2006, Paul Heinlein wrote:


>Further, you must ensure that, on the remote machine into which 
>you're attempting to login,

You just went beyond my Un*x memory stack.  I learned this stuff once 
upon a time, but I forget how to check this out...


>a) $HOME is not group-writeable or world-writeable

Is this the directory /home/user  ?  Or some environment variable?


>b) $HOME/.ssh has 0700 permissions
>
>c) $HOME/.ssh/* have 0600 permissions

As I said, mine are /ssh2  and how do I check this?


>(Actually, there are some $HOME/ssh/* files that can have looser 
>permissions than 600, but they all work with 0600, so that's the way 
>I keep them.)

~]$ ls -la
total 52
.
.
.
drwxrwxr-x  2 user user  4096 Jan 10 17:01 .ssh2


.ssh2]$ls -l
total 8
-rw-r--r--  1 user user   12 Jan 10 17:01 authorization
-rw-r--r--  1 user user 1252 Jul  8  2005 user.pub