Skip to content

Commit 08755e3

Browse files
committed
Update set_trust.sh
1 parent 4a86627 commit 08755e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

set_trust.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set timeout 60
33
set vm_ip [lindex $argv 0]
44
set net [lindex $argv 1]
55
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
6+
spawn ip netns exec qdhcp-$net ssh-copy-id root@$vm_ip
77
expect "*connecting (yes/no)?"
88
send "yes\r"
99
expect "*password:"

0 commit comments

Comments
 (0)