Full stack web developer, interested in all the things, but especially the web, code, design, Linux, OS X, PHP, WordPress, JavaScript & robots.

Copy your ssh public key to a server from a machine that doesn’t have ssh-copy-id (E.g. MacOS)

ssh-copy-id is ace, but it when it doesn’t exist, the following will come handy:

cat ~/.ssh/ | ssh $ "cat >> ~/.ssh/authorized_keys"

Note: just change the “” address to that of your server.

Leave a comment

Your email address will not be published. Required fields are marked *