PHP高级工程师|全栈工程师|WX: Aben_Ring

scp免密码拉去方法

# scp命令免密码
vi /etc/hosts.allow
新增行
sshd:61.174.9.92:allow

拷贝/root/.ssh/id_rsa.pub到备份机,重命名为/root/.ssh/authorized_keys

重启/etc/init.d/sshd restart

posted @ 2019-01-04 18:13  懒牛拉车  阅读(362)  评论(0编辑  收藏  举报