Comments on Setting Up An SSH Certificate For Ubuntu From A Mac
Setting Up An SSH Certificate For Ubuntu From A Mac This howto should help you with setting up an RSA public and private key setup from a Mac to an Ubuntu box. Of course, this should be possible with other OS's but I have not tested it.
10 Comment(s)
Comments
This line:
Once this is done SSH into your server.
I'm wondering how one could do this.......if it hasn't been set up yet.
That's like saying:
1) remove gasoline from car
2) work on engine
3) start car
How do we do #3? There's no gas in there.
that's a poor analogy. Also it assumes you have ssh access to the server in the first place. If you don't this won't help you. This is not a way AROUND security, it's a way to implement better security.
yes onion, bad analogy. This works very well. You must allready have ssh set up with passwords to follow this step by step. If you dont you will have to upload the .pub file and copy its contents to authorized_keys. Then turn off password auth.
Thanks howtoforge........
Thanks a lot!
This is exactly what I was searching for, and it worked!
Greetz
Don't listen to all the negative comments.
You were at the top of my google search and it worked.
I perfer to use vi editor but that is just a preference of mine.
For others reading, if you are sick of being prompted for the remote root password because you ssh into 20 different servers a day this is very helpful indeed.
Thanks for posting this! It's straight forward and helpful.
This page should be re-titled as these are not certificates. These are ssh PSK(pre-shared keys). Certificates have chains of authority signed by root CA, etc.
Good quick tutorial, I have used it many times.
I just want to point out a typo though:
ssh-keygent -t rsa -b 4096
"ssh-keygen" not "ssh-keygent"
You don't explain what computer's user name to use. The server or the client?
You said save the RSA key in /home/username/.ssh/id_rsa but on MacOS your home directory is in /Users, not /home.