3 ms·
Why does no one ever mention ssh-copy-id?! Is part of Openssh and copies across your default pub key to the server in question. ssh-copy-id user@server Edit:
by cones688 12y ago
Why does no one ever mention ssh-copy-id?! Is part of Openssh and copies across your default pub key to the server in question.
ssh-copy-id user@server
Edit: Add more info
- tmikaeld 12y agonot sure, maybe not standard enough? i always use it myself, so much more comfortable
- bigd 12y agobecause is not present in the mac default installation
- batuhanicoz 12y agoBut it is very easy to install if you have Homebrew and I'm guessing everyone who needs ssh-copy-id would already have homebrew installed. Just do: brew install ssh-copy-id
- cones688 12y agoDoes osx not use Openssh Package? On Fedora here so had always wondered why all these setup guides included this step.. the osx thing might explain it.
- Touche 12y agoProbably because the top Google result tells you to do it the way explained in this article. I did it that way for years before finding out about ssh-copy-id.
- Bob_Sheep 12y agoscp is another option if ssh-copy-id is not available
- emiunet 12y agoIn a lot of environments, the SSH servers are listening on some non-standard port. I don't see an option in ssh-copy-id to specify the SSH server port.