1,產生公鑰時不輸入回車。ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsassh
2,本機scp時不用輸入yes/no。scp -o StrictHostKeyChecking=no /root/mod_name.sh root@10.194.38.234:~/.net
3,免密操做:https://blog.csdn.net/wh_19910525/article/details/7433164blog