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

Re: Passwordless login with SSH



-----BEGIN PGP SIGNED MESSAGE-----

Rebecca R Hepper seagate com wrote:

>I am trying to do a passwordless login using SSH.
>
>cp /home/username/.ssh/identity.pub from the client onto host and place it
>in /home/username/.ssh/authorized_keys
>chmod 600 /home/username/.ssh/authorized_keys

You're on the right track.  That's the important part, but it only
works unattended if a) the key is passwordless, b) you have enabled
ssh1 on the server, and c)  you're forcing ssh1 on the client, via
configuration or command line switches.  That's because the keys you
generated are for ssh1, which is not recommended.  Regenerate them
using:

# ssh-keygen -d

The keyfiles will be DSA keys for ssh2, and will be called id_dsa and
id_dsa.pub.  Then try your steps again, but use the filename
authorized_keys2 in place of each instance of authorized_keys.  See
the man page for further details; it's very thorough.

Good luck ... -d

- -- 
David Talkington
http://www.spotnet.org

PGP key: http://www.prairienet.org/~dtalk/dt000823.asc

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQEVAwUBO2glx71ZYOtSwT+tAQE0bggA3zUK8b41UMm9R4yFTrK2YA/oB4CFr1kg
Y6pgjoDy8O95PCreHsTEIzMqT/H6MEL1T1fZzn1KBEnrH2kzfu1nEXZVny1p76zI
sx2+SCi+GUDl30hoYmrievTbOCi1RpZ3+L/vvMTLhbOt/OCnD8zTsJH0+CqOWFdY
jhto6aWZWqfcJpUjwMMSHL1I2cMysF+fcSkGKB1fjg4mivPMZhSg96nCyl7rcUk3
ElZRXDKJebYr0Q6WHbiSaH3DeJtg1NdhBh2l4xWaLa1mHH41m1dzUArWGCf/85dT
SNufQMCn6ELQULr2VHMQcpS/LltDDptv10fwh0t8X5yVYyQ6mlrZHg==
=FrFE
-----END PGP SIGNATURE-----






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