Networking Forums

Networking Forums > Computer Networking > Linux Networking > SSH

Reply
 
 
giuseppe
Guest
Posts: n/a

 
      10-18-2004, 10:49 AM
I created a keypair
$ssh-keygen -t rsa
and I sent the public key to the remote host
$cat ~/.ssh/id_rsa.pub | ssh 10.0.0.8 sh -c "cat >> ~/.ssh/authorized_keys"

Now I shouldn't supply the password every time I log in, but when I
execute
$ssh giuseppe@10.0.0.8

I still need to type the password!!!

Thanks!!!
 
Reply With Quote
 
 
 
 
giuseppe
Guest
Posts: n/a

 
      10-18-2004, 11:07 AM
On Mon, 18 Oct 2004 10:49:01 +0000, giuseppe wrote:

> I created a keypair
> $ssh-keygen -t rsa
> and I sent the public key to the remote host
> $cat ~/.ssh/id_rsa.pub | ssh 10.0.0.8 sh -c "cat >> ~/.ssh/authorized_keys"
>
> Now I shouldn't supply the password every time I log in, but when I
> execute
> $ssh giuseppe@10.0.0.8
>
> I still need to type the password!!!
>
> Thanks!!!


Got it, it was a matter of permissions!!!

 
Reply With Quote
 
Solbu
Guest
Posts: n/a

 
      10-19-2004, 08:10 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On mandag 18. oktober 2004, 13:07 giuseppe tried to express an opinion:

>> I created a keypair
>> $ssh-keygen -t rsa
>> and I sent the public key to the remote host
>> $cat ~/.ssh/id_rsa.pub | ssh 10.0.0.8 sh -c "cat >> ~/.ssh/authorized_keys"


> I still need to type the password!!!


> Got it, it was a matter of permissions!!!


For future references/use, I recommend "ssh-copy-id (E-Mail Removed)".
This will copy your public keys AND fix the permissions.

:-)=

- --
Solbu - http://www.solbu.net
Remove 'ugyldig' for email
PGP key ID: 0xFA687324
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFBdMwdT1rWTfpocyQRAvwrAKDP/a5GahztDp+5/eQWB8yHBN+xdwCguEO4
R+zYn2NLxJXQ7uE751goXe4=
=hLxU
-----END PGP SIGNATURE-----
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11