Wednesday, October 7, 2009

SSH Password less logon


$ pwd
/home/foouser
$ cd ..
$ ls -rtl
total 32
drwxrwsrwx 2 foouser 0 8192 Jan 23 13:57 foouser
$ chown akaan akaan
$ chmod 700 AKAAN
$ ls -rtl
total 32
drwxr-sr-x 2 foouser 0 8192 Jan 23 13:57 foouser
$ cd foouser
$ mkdir .ssh
$ chmod 700 .ssh
$ cd .ssh
$ vi authorized_keys
~authorized_keys" [New file] 1 line, 218 characters
$ chmod 600 *
$ ls -lrt
total 16
-rw------- 1 foouser 0 217 Jan 23 14:02 authorized_keys

No comments:

Post a Comment