如何使用 ssh2 运行自动 rsync
我正在尝试通过 ssh2 协议在两台机器之间设置 rsync。 早些时候,我们使用 ssh1 进行自动 rsync,无需任何密码,但最近我们迁移到 ssh2,并使用 ssh2 提示输入密码运行 rsync。
我生成了一个新的 SSH2-RSA 密钥,并且也没有密码,但它仍然要求我提供密码。这是我为 ssh 运行的命令 /usr/bin/ssh -2 -i /usr/local/www-rsync-key fsuser@xyz
要获得空密码的 ssh2 密钥才能工作,需要执行哪些步骤?我猜您必须在 /etc/ssh/sshd_config 中设置某些设置,但我不知道是什么!
i am trying to setup rsync between two machines over ssh2 protocol.
Earlier we used ssh1 for automated rsync without any passphrase, but recently we migrated to ssh2 and running rsync with ssh2 prompts for passphrase.
I generated a new SSH2-RSA key and that too without passphrase, but it still asks me for the passphrase.Here is the command that i run for ssh
/usr/bin/ssh -2 -i /usr/local/www-rsync-key fsuser@xyz
What steps do you have to do to get an ssh2 key with a null password to work? I'm guessing there are certain settings in /etc/ssh/sshd_config you have to set, but I can't figure out what!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个问题出现在超级用户上,讨论无密码的ssh主题。
This question appeared on Superuser, discussing the topic of ssh without a password.
如果系统提示您输入密码,请检查您是否已将公钥添加到远端的正确文件中(现在可能是authorized_keys2),并且目录权限是否正确(.ssh 及其内容不应设置了任何组或世界权限)。
If you're getting prompted for a password, check that you've added the public key to the correct file on the far side (could be authorized_keys2 now), and that the directory permissions are correct (.ssh and its contents shouldn't have any group or world permissions set).