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 4 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
If the username on the remote host is the same as on the local machine you can omit the username.
Alternative for machines without ssh-copy-id
If you can do better, submit your command here.
You must be signed in to comment.