Simple ssh-copy-id question

Soldato
Joined
18 May 2010
Posts
22,892
Location
London
I always find this so hard. I've managed it using this guide but my question is, why did he use the mykey rather than the mykey.pub file, when the author says NEVER copy the private keys?

Isn't the mykey the private key?

:confused:

Is it because although you specify the private key it actually copies the public?
 
Last edited:
Cool. I get that.

I have it working, by following the guide above but confused.

I'm confused as two guides both say the same thing.

If you look at the guide I posed above the ssh-copy-id command he seems to be specifying the key which doesn't have the .pub extension as the key to copy.

Either this is wrong, or the ssh-copy-id command actually copies the .pub key of the private key you specify.

Very confusing for inexperienced admins like me. :o


---

According to this, the -i defaults to the .pub file.
 
Last edited:
Back
Top Bottom