2008年12月29日 星期一

set ssh connect without password prompt



in mirror computer ( 192.168.1.139)
create ssh key & place it to server


cd /home/atmail/.ssh/
su atmail
ssh-keygen -f atmailrsync
scp atmailrsync.pub 192.168.1.7:/home/atmail/.ssh/authorized_keys


connect the server with the ssh key

su atmail
ssh -i /home/atmail/.ssh/atmailrsync atmail@192.168.1.7