如何为 rsync SSH 命令自动传递密码? [英] How to pass password automatically for rsync SSH command?
本文介绍了如何为 rsync SSH 命令自动传递密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要通过 ssh
执行 rsync
并且希望自动执行,而无需手动为 ssh
传递密码.
I need to do rsync
by ssh
and want to do it automatically without the need of passing password for ssh
manually.
推荐答案
对于脚本化的 ssh 登录,您应该使用没有密码的密钥文件.这显然存在安全风险,请注意密钥文件本身已得到充分保护.
You should use a keyfile without passphrase for scripted ssh logins. This is obviously a security risk, take care that the keyfile itself is adequately secured.
这篇关于如何为 rsync SSH 命令自动传递密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文