# rsync -arvce ssh /tmp/rsync/file.txt user@domain:/tmp/rsync/
这工作正常,我将不得不在多个地方这样做,所以我想实现StrictHostKeyChecking选项.
阅读其他在线示例后,我添加了这样的选项(3个例子):
# rsync -arvce ssh -o 'StrictHostKeychecking no' /tmp/rsync/file.txt user@domain:/tmp/rsync/# rsync -arvce ssh -o 'StrictHostKeychecking=no' /tmp/rsync/file.txt user@domain:/tmp/rsync/# rsync -arvce ssh -o UserKNownHostsfile=/dev/null -o StrictHostKeyChecking=no /tmp/rsync/file.txt user@domain:/tmp/rsync/
我仍然得到提示验证目标服务器的密钥.
我理解-o StrictHostKeychecking =没有选项让我选择是否绕过这个步骤,每次我打开一个连接.
我做错了吗?
新评刑新200新新新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗新新旗旗新旗
http://linuxcommando.blogspot.com/2008/10/how-to-disable-ssh-host-key-checking.html
http://www.thegeekstuff.com/2010/04/how-to-fix-offending-key-in-sshknown_hosts-file/
http://www.cyberciti.biz/faq/linux-appleosx-howto-disable-ssh-host-key-checking/
解决方法 我已经解决了这是添加该选项的正确(或大多数正确)方式:
# rsync -arvce "ssh -o StrictHostKeyChecking=no" /tmp/rsync/file.txt user@domain:/tmp/rsync/
通过添加双引号并将ssh放在里面,出现一个非常有用的方法来应用该选项.
总结以上是内存溢出为你收集整理的ssh – StrictHostKeyChecking不忽略指纹验证全部内容,希望文章能够帮你解决ssh – StrictHostKeyChecking不忽略指纹验证所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)