A机可免密码访问B机:A机执行:ssh-keygen 一路回车ssh-copy-id -i ~/.ssh/id_rsa.pub B机用户@B机IP ssh@B机IP即可免密码访问B机 转载于:https://www.cnblogs.com/tinaleft/p/6047680.html