On Mon, 21 Aug 2000, Kevin Wood wrote:

> If you look at the command ssh-keygen, this is what you will need.
> 
> Run the command ssh-keygen as the user you will be logging into the
> remote machine with.
> This will produce a identity key and an identity.pub key located in the
> ~/.ssh/ directory. Now on the remote machine, make a directory called
> ~/.ssh with the same user name again.  Copy the identity.pub key  to
> ~/.ssh/authorized_keys.  Then try to login again.  This should allow you
> remote access without a password.  If I am mistaken or have missed any
> steps, would someone let me know.  Thanks
> 
> Kevin

The step you missed is permissions on the .ssh directory and
.ssh/authorized_keys. Set both to be rw for the user only:

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

ssh checks the permissions before checking the keypair and will fail if
they are too open.


Bill Carlson
------------
Systems Programmer    [EMAIL PROTECTED]    |  Opinions are mine,
Virtual Hospital      http://www.vh.org/        |  not my employer's.
University of Iowa Hospitals and Clinics        |



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to