-   Linux - General (
-   -   SSh Keys (

shaggz 02-18-2003 05:09 PM

SSh Keys
I have a rather odd question..

I have a host box that I want to generate an SSH key here on my client box to put in /root/.ssh/authorized_keys2 in order for me to simply ssh -1 -l root hostmachine

On my local box I don't have any file in .ssh so when I run ssh-keygen -l I get file does not exist. I created it yet then it said its not a public key file.

I'm using RH8.0 and have successfully done this many time on other machines however am stumped on this one. Is there something different I need to do w/RH8?


nxny 02-18-2003 06:44 PM is the public keyfile for SSH version 1. It is more perforated than an average honeycomb. I would suggest disabling it on the server side ( /etc/ssh/sshd_config ) for starters.

Now, we're left with ssh version 2. You can either generate RSA keys (~/.ssh/id_rsa and ~/.ssh/ ) or DSA keys( in similarly named files ). Use ssh-keygen -trsa ( or -tdsa ) respectively on the ssh client side.

append your public key files to ~/.ssh/authorized_keys on the SERVER side. You should be good to go.

pjcp64 02-19-2003 09:09 PM

Try this article; its well written.

All times are GMT -5. The time now is 08:59 AM.