cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
参考资料:http://www.linuxproblem.org/art_9.html