6 ms·
I'm always sad that OS X doesn't support ssh-copy-id natively.
by dotBen 15y ago
I'm always sad that OS X doesn't support ssh-copy-id natively.
- deleted 15y ago[deleted]
- snprbob86 15y agoAgreed, but that's easy enough to deal with: `brew install ssh-copy-id`
- danishkhan 15y agoman this was an awesome find for me. thank you.
- vegardx 15y agoSince it's basically just a bash-script you can just copy it from any of the major Linux-distros. I've copied mine from Debian Lenny, and it works great.
- pilif 15y agoapparently it's in homebrew (see other comment), but for half an eternity, I've always been using this: ssh user@host "mkdir .ssh && cat >> .ssh/authorized_keys" < ~/.ssh/id_rsa.pub (remove the mkdir if .ssh already exists) This works as well and is using nothing but the power of the unix shell and the concept of pipes.
- cjp 15y agoUse mkdir -p to avoid failing if .ssh already exists. ssh user@host "mkdir -p .ssh && cat >> .ssh/authorized_keys" < ~/.ssh/id_rsa.pub