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

Re: ssh without password



I think the problem was, that I generated the rsa key on the server [and have the id_rsa there], not on the client [I wanted to log in to the server from the client] :D:D

thanks again :))

--- On Thu, 8/27/09, Eugene Apolinary <eugeneapolinary80@yahoo.com> wrote:

From: Eugene Apolinary <eugeneapolinary80@yahoo.com>
Subject: Re: ssh without password
To: "debian-user@lists.debian.org" <debian-user@lists.debian.org>
Date: Thursday, August 27, 2009, 8:25 AM

Thank you!! It worked with this howto:

http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html

Thanks!! :))

Thank you!

--- On Thu, 8/27/09, Frank Bonnet <f.bonnet@esiee.fr> wrote:

From: Frank Bonnet <f.bonnet@esiee.fr>
Subject: Re: ssh without password
To: "Eugene Apolinary" <eugeneapolinary80@yahoo.com>
Cc: "debian-user@lists.debian.org" <debian-user@lists.debian.org>
Date: Thursday, August 27, 2009, 7:16 AM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

Look here

http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html



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 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
>
>
>       

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqWMq8ACgkQ6f7UMO5oSsVJcwCdE2IVKuJlBjSRHhONHwniJD1f
OWMAn3xWsrS5hNAeBGsTwyHDBPSJ/Rfy
=1iTG
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



start: 0000-00-00 end: 0000-00-00
Reply to: