ssh -vv http://pastebin.com/f3d2d4e3d
ssh -vvv http://pastebin.com/f687e372 I changed the "authorized_keys" permission on [B] to 600 Plus I tried to change PasswordAuthentication no in [A] /etc/ssh/sshd_config, and then restart ssh. But if I do this this happens http://pastebin.ca/1544022 thank you :) --- On Wed, 8/26/09, James Richardson <ja...@jamesr.biz> wrote: From: James Richardson <ja...@jamesr.biz> Subject: Re: ssh without password To: debian-user@lists.debian.org Date: Wednesday, August 26, 2009, 11:15 PM Eugene Apolinary wrote: > 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 r...@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 > > The permission on authorized_keys should be 600. No group/other access. authorized_keys2, I think is not required (at least I don't seem to have it). Also send the output of ssh -vv ... and we can better help. Thanks. > -- James Richardson Debian GNU/Linux Consultant http://www.linkedin.com/in/jamesrichardsonconsulting