Image

Imagebudhaboy wrote in Imagelinux

Consider the following excerpt from the SSH manpage:

ssh implements the RSA authentication protocol automatically. The user
creates his/her RSA key pair by running ssh-keygen(1). This stores the
private key in $HOME/.ssh/identity and the public key in
$HOME/.ssh/identity.pub in the user's home directory. The user should
then copy the identity.pub to $HOME/.ssh/authorized_keys in his/her home
directory on the remote machine (the authorized_keys file corresponds to
the conventional $HOME/.rhosts file, and has one key per line, though the
lines can be very long). After this, the user can log in without giving
the password. RSA authentication is much more secure than rhosts authen­
tication.


I take this to mean that I need to do the following steps to be able to do a secure login without a password:

1) log in to the host machine as root
2) use ssh-keygen to create a key
3) copy the identity.pub file an entry in the authorized_keys file in ~/.ssh/ on the remote host
4) logout of the host
5) login to the remote machine
6) login to the host machine by typing only ssh hostmachine

I can't get this to work... I'm confused by what options to use with the ssh-keygen... what is the protocol that is the default when using the stock sshd settings that come with SuSE 8.2? How do I find out what setting are used with sshd? Do I care? I've been beating my head against a wall with this for some time... It's really starting to piss me off.