commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
There are 5 alternatives - vote for the best!
If you use Mac OS X or some other *nix variant that doesn't come with ssh-copy-id, this one-liner will allow you to add your public key to a remote machine so you can subsequently ssh to that machine without a password.
Same as original just no $ at start
Alternative for machines without ssh-copy-id
If the username on the remote host is the same as on the local machine you can omit the username.
This is the best way to fix this issue on OS X. If you don't have homebrew installed, now is the perfect time to fix that too. ;-)
If you can do better, submit your command here.
You must be signed in to comment.