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

Pupeno wrote:
> I'm trying to set up a passwordless log in, using ssh and dsa or rsa 
> keys. For that, I first try to make it work for localhost. So, I do the 
> following steps:
> 
> [EMAIL PROTECTED] sandra $ cd .ssh
> 
> Generate a dsa and rsa keys (just in case):
> 
> [EMAIL PROTECTED] .ssh $ ssh-keygen -t dsa Generating public/private dsa key 
> pair. Enter file in which to save the key (/home/sandra/.ssh/id_dsa): 
> Enter passphrase (empty for no passphrase): Enter same passphrase again:
>  Your identification has been saved in /home/sandra/.ssh/id_dsa. Your 
> public key has been saved in /home/sandra/.ssh/id_dsa.pub. The key 
> fingerprint is: bd:7c:9d:d2:7a:c9:e5:df:13:15:69:32:94:e0:bd:29 
> [EMAIL PROTECTED] [EMAIL PROTECTED] .ssh $ ssh-keygen -t rsa Generating 
> public/private 
> rsa key pair. Enter file in which to save the key 
> (/home/sandra/.ssh/id_rsa): Enter passphrase (empty for no passphrase): 
> Enter same passphrase again: Your identification has been saved in 
> /home/sandra/.ssh/id_rsa. Your public key has been saved in 
> /home/sandra/.ssh/id_rsa.pub. The key fingerprint is: 
> e5:72:8b:4c:a2:fb:88:b1:a1:ee:e0:99:0f:9b:1b:27 [EMAIL PROTECTED] [EMAIL 
> PROTECTED] 
> .ssh $ ls id_dsa  id_dsa.pub  id_rsa  id_rsa.pub  known_hosts
> 
> Make them authorized keys:
> 
> [EMAIL PROTECTED] .ssh $ cat id_dsa.pub id_rsa.pub >> authorized_keys
> 
> Try to log in to [EMAIL PROTECTED] (liv is localhost):
> 
> $ ssh [EMAIL PROTECTED] Password:
> 
> 
> Any help will be very appretiated. Thank you.
To sum up what you did:

You created the dsa-key as user sandra and copied the public key to sandra's
authorized_keys. Now Sandra can ssh from her account to her account on the
same machine without a password.

What you have to do for passwordless log in, which is rather insecure:
Create a dsa- or rsa-key for the user you want to open the ssh connection
from, probably your account.
Copy the public key to the file ~/.ssh/authorized_keys on the machine and
account you want to log in.

HTH
- --
Dirk Raeder

I prefer encrypted and signed messages. My GPG key is available at
hkp://blackhole.pca.dfn.de with ID 0x05EB5446

Registered Linux user #378554
http://counter.li.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCR6Vu2QYJ1wXrVEYRAgmQAKC52CXI+G1oG1wFAfc7pF+BDn/GKACgi9y5
Zv1XpjDexoKAsYvcWUXM58o=
=1fOv
-----END PGP SIGNATURE-----
--
[email protected] mailing list

Reply via email to