ssh-copy-id

Gustavo De Nardin gustavodn at gmail.com
Sat Jul 14 23:18:47 UTC 2007


On 13/07/07, Pollywog <lists-fbsd at shadypond.com> wrote:
> Since FreeBSD does not have ssh-copy-id as part of the OpenSSH package, what
> is the best way to copy a public key to an account on another host?  Some
> Linuxes (Debian and Ubuntu) have a ssh-copy-id script for this in their
> OpenSSH packages.

Well dunno about "best way", but I used to do something like this..:
ssh $remote 'mkdir -m 600 .ssh && cat - >>.ssh/authorized_keys'
<~/.ssh/id_rsa.pub

But of course ssh-copy-id is much smarter.

-- 
(nil)


More information about the freebsd-questions mailing list