4 ms·
There is a standard tool, ssh-copy-id, that does the job of sshpair.
by electrum 11y ago
There is a standard tool, ssh-copy-id, that does the job of sshpair.
- merlincorey 11y ago* Standard on Debian based OSes
- stephenr 11y agoIt's literally just a shell script, it's not like it can't be ported to other *nixes http://anonscm.debian.org/cgit/pkg-ssh/openssh.git/tree/contrib/ssh-copy-id http://anonscm.debian.org/cgit/pkg-ssh/openssh.git/tree/cont...
- groks 11y ago$ rpm -qf /usr/bin/ssh-copy-id openssh-clients-6.9p1-6.fc22.1.x86_64
- stephenr 11y agoYes, its actually in the contrib directory in the openssh source (I didn't realise this until I just checked) https://anongit.mindrot.org/openssh.git/tree/contrib/ssh-copy-id https://anongit.mindrot.org/openssh.git/tree/contrib/ssh-cop...
- merlincorey 11y agoHmmm, yes, it seems it is more generally distributed now than it was in the past. I just found it's on a lot more distributions than I had recalled. This is good to learn!
- raimue 11y agoThis sshpair is actually quite dangerous as it simply overwrites your existing key.
- merlincorey 11y agoYeah I was just complaining about that elsewhere. It's a further symptom of the fact this whole project is reinventing wheels, badly.