We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a86627 commit 08755e3Copy full SHA for 08755e3
set_trust.sh
@@ -3,7 +3,7 @@ set timeout 60
3
set vm_ip [lindex $argv 0]
4
set net [lindex $argv 1]
5
set pd [lindex $argv 2]
6
-spawn sed -i /$vm_ip/d /root/.ssh/known_hosts && ip netns exec qdhcp-$net ssh-copy-id root@$vm_ip
+spawn ip netns exec qdhcp-$net ssh-copy-id root@$vm_ip
7
expect "*connecting (yes/no)?"
8
send "yes\r"
9
expect "*password:"
0 commit comments