我使用以下命令Rsync-ing:
# 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/