You are here: Home / What do you need? / Help and documentation / Unix tricks and information / Setting up DSA public/private keys for ssh/rsync

Setting up DSA public/private keys for ssh/rsync

by Darrell Kingsley last modified Mar 13, 2014 02:11 PM

of course you could use RSA

generate DSA private and public key pair

ssh-keygen -t dsa -f id_dsa (no pass key)

gives

  id_dsa (private)
  id_dsa.pub (public)

put them in users ~/.ssh (700) directory

copy the public key to the remote server that is to be accessed without password authentication. 

Add it to .ssh/authorized_keys (600)

Implement any restrictions with from="hostname",command="/home/plone/.ssh/validate-rsync" preceding the key block

hostname given by hostname command on the server

 

 

Debug using ssh-v and make sure the hostname matches