linux - passing yes argument while scp command -
i facing issue when run these commands.
the remote server want pass yes add key in rsa file because first time connection established scp.
commands given below
#!/bin/bash scp -p58222 root@ip:/root/k /n /usr/bin/expect -c 'expect "\n" { expect "are sure want continue connecting (yes/no)?" }' send "yes\r" expect "$ " send "exit\r" actually have pass yes in script while asking
the authenticity of host 'ip address (ip address)' can't established.
rsa key fingerprint xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx. sure want continue connecting (yes/no)? are sure want continue connecting (yes/no)?
how can rid of problem?
with
scp -o stricthostkeychecking=no it still asking.
scp -o stricthostkeychecking=no root@ip:/root/k obviously, isn't secure solution. works one-shots you're not concerned man in middle, though.
Comments
Post a Comment