[Short Tip] Copy SSH-Identity

920839987_135ba34fffIf you regularly shh to a specific server, it is handy to copy the public part of your ssh key to the other server to avoid putting in the login password all the time. But instead of manually picking your public key, invoking scp manually to throw it to the server and calling echo/cat to attach it to


you can use one handy little command:

# ssh-copy-id liquidat@mymachine.de
liquidat@mymachine.de's password:
Now try logging into the machine, with "ssh 'liquidat@mymachine.de'", and check in:


to make sure we haven't added extra keys that you weren't expecting.

If you need to use a different port the command is a bit different than you might expect:

# ssh-copy-id "liquidat@mymachine.de  -p 1234"