HOWTO+-+Linux+(UNIX)+SSH+keys

code format="bash" ssh-keygen

cat id_dsa.pub | ssh user@remotehost "cat >> .ssh/authorized_keys" code

or in newer systems

code format="bash" ssh-copy-id root@remotehost code