[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ssh without password



Hi...

It's just not working! :(

Machine [A]: Debian Lenny [server]
Machine [B]: Debian Lenny [client]

I just want to SSH from [A] to [B] without password...

[A]
# apt-get install openssh-server

# dpkg -l|grep ssh
ii  openssh-blacklist                   0.4.1                    list of default blacklisted OpenSSH RSA and
ii  openssh-blacklist-extra             0.4.1                    list of non-default blacklisted OpenSSH RSA
ii  openssh-client                      1:5.1p1-5                secure shell client, an rlogin/rsh/rcp repla
ii  openssh-server                      1:5.1p1-5                secure shell server, an rshd replacement

# ssh-keygen -b 4096 -t rsa -v
[I didn't give password, when it asked to, I just hit enter]

[B]
I copied the generated "id_rsa.pub" file to the [B] and:

cat id_rsa.pub >> /home/user/.ssh/authorized_keys
cat id_rsa.pub >> /home/user/.ssh/authorized_keys2

# dpkg -l | grep ssh
ii  libssh2-1                                     0.18-1                     SSH2 client-side library
ii  openssh-client                                1:5.1p1-5                  secure shell client, an rlogin/rsh/rcp replacement

ssh root@IP
[I answered yes, then it wants me to give password.... :\ .... if I give the correct password, it logs me in, ok, but why didn't it worked without password?]


What am I missing?? :( Please help

ssh -v
http://pastebin.com/fe2fc0d0

[A]
# ls -la
total 7
drwx------ 2 root root 1024 2009-08-25 17:47 .
drwxr-xr-x 5 root root 1024 2009-08-25 17:53 ..
-rw------- 1 root root 3239 2009-08-25 17:47 id_rsa
-rw-r--r-- 1 root root  733 2009-08-25 17:47 id_rsa.pub

[B]
$ ls -la
total 16
drwx------  2 user user   69 2009-08-27 00:51 .
drwx------ 59 user user 4096 2009-08-27 00:53 ..
-rw-r--r--  1 user user  733 2009-08-27 00:51 authorized_keys
-rw-r--r--  1 user user  733 2009-08-27 00:51 authorized_keys2
-rw-r--r--  1 user user  442 2009-08-27 00:51 known_hosts


Reply to: