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?
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.
Try this article; its well written.
|All times are GMT -5. The time now is 07:12 AM.|