Tuesday, March 9, 2010

ssh-copy-id on OS X

[Edit Dec 16th 2011] Take your pick:

    brew install ssh-copy-id

OR


    sudo port install openssh +ssh_copy_id

OR
    wget http://blog.christopherpitzer.com/wp-content/uploads/ssh-copy-id \
      -O /usr/bin/ssh-copy-id
    sudo chmod +x /usr/bin/ssh-copy-id





Supposedly if you install macports for Snow Leopard, Leopard, or Tiger and then modify your PATH then you can get the "real" version of OpenSSH like so:
sudo port install openssh
# to start sshd (the server) on boot:
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.OpenSSH.plist

But as far as I can tell, this doesn't actually include ssh-copy-id either.

7 Comments:

Blogger Allan Haggett said...

Thanks.

September 6, 2011 at 11:44 PM  
Blogger Kasper Grubbe said...

OSX don't ship with wget ;)

October 18, 2011 at 7:11 PM  
OpenID Araxia said...

`ssh-copy-id` is in the `contrib/` directory of the OpenSSH project:

http://repo.or.cz/w/openssh-git.git/blob_plain/3b07a5312b25695dca02a31592d850ff57bd68c1:/contrib/ssh-copy-id

November 16, 2011 at 6:56 PM  
OpenID Araxia said...

With homebrew, `brew install ssh-open-id` will get it for you, too.

November 16, 2011 at 6:57 PM  
Blogger Craig Hughes said...

MacPorts has a variant that will install ssh-copy-id:

sudo port install openssh +ssh_copy_id

That should do it.

December 16, 2011 at 4:12 PM  
Blogger CoolAJ86 said...

macports? what a throwback to the 00's

It's all about Homebrew, baby!

December 16, 2011 at 5:07 PM  
OpenID chris said...

I think @Araxia might have meant:

'brew install ssh-copy-id'

December 19, 2011 at 7:30 AM  

Post a Comment

Subscribe to Post Comments [Atom]

Links to this post:

Create a Link

<< Home