如何自动为rsync SSH命令传递密码? [英] How to pass password automatically for rsync SSH command?

查看:482
本文介绍了如何自动为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.

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆