一台新linux需要做兩台伺服器無密通信. 首先ssh-kengen -t rsa(非對稱算法) 回車 一路回車即可 #cd /root/.ssh #ssh-copy-id -i id_rsa.pub root@ip 測試ssh root@ip