Archive for September 7th, 2010

Copy ssh key

Recently I found a very handy command to copy your public ssh key to a destiation host.

All the time struggeling around with some xargs, pipes etc. to learn in the end that the command already exists.

How to use it:

ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host

Create dsa key pair:

ssh-keygen -t dsa