Prepare Ubuntu to SCP batch By: Onno W. Purbo Client Machine $ ssh-keygen -t dsa /home/user/.ssh/id_dsa.pub $ chmod 600 /home/user/.ssh/id_dsa.pub $ scp /home/user/.ssh/id_dsa.pub 'user@machine:~/.ssh/authorized_keys'