ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat id_rsa.pub | ssh -p [dst_sshport] [dst_user]@[dst_ip] 'cat - >> ~/.ssh/authorized_keys'
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat id_rsa.pub | ssh -p [dst_sshport] [dst_user]@[dst_ip] 'cat - >> ~/.ssh/authorized_keys'
转载于:https://www.cnblogs.com/sodawy/archive/2013/04/19/3030247.html