LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   SSh Keys (http://www.linuxquestions.org/questions/linux-general-1/ssh-keys-46047/)

shaggz 02-18-2003 06: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 identity.pub 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?


Thanks

nxny 02-18-2003 07:44 PM

identity.pub 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/id_rsa.pub ) 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 10:09 PM

Try this article; its well written.
http://www-106.ibm.com/developerwork...ry/l-keyc.html


All times are GMT -5. The time now is 03:40 AM.