- install openssh on client and server
- create ssh key using:
ssh-keygen -t dsa
- Log into server using sftp
- copy the file
id_dsa.pub (generated in the client) to the server - on the server, merge contents of (client) id_dsa.pub with ~/.ssh/authorized_keys2
- From client, try logging in using ssh or sftp. Key should be accepted.