Commit 8bad9c65 authored by Laine Stump's avatar Laine Stump

nwfilter tests: auto-add test appliance ssh key to known_hosts on host

Without this option, attempts to ssh into the test appliance will fail
unless someone has previously ssh'ed into the appliance manually and
accepted its key.
Signed-off-by: default avatarLaine Stump <laine@laine.org>
Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
parent d77e2dbe
......@@ -92,7 +92,8 @@ ok($ping =~ "10 received", "ping $guestip test");
diag "ssh'ing into $guestip";
my $ssh = Net::OpenSSH->new($guestip,
user => "root",
password => $tck->root_password());
password => $tck->root_password(),
master_opts => [-o => "StrictHostKeyChecking=no"]);
# now bring eth0 down, change MAC and bring it up again
diag "fiddling with mac";
......
......@@ -75,7 +75,8 @@ ok($ebtable =~ "$guestip", "check ebtables entry");
diag "ssh'ing into $guestip";
my $ssh = Net::OpenSSH->new($guestip,
user => "root",
password => $tck->root_password());
password => $tck->root_password(),
master_opts => [-o => "StrictHostKeyChecking=no"]);
# now bring eth0 down, change IP and bring it up again
diag "preparing ip spoof";
......
......@@ -86,7 +86,8 @@ system("/usr/sbin/tcpdump -v -i virbr0 -n host 192.168.122.255 and ether host ff
diag "ssh'ing into $guestip";
my $ssh = Net::OpenSSH->new($guestip,
user => "root",
password => $tck->root_password());
password => $tck->root_password(),
master_opts => [-o => "StrictHostKeyChecking=no"]);
# now generate a mac broadcast paket
diag "generate mac broadcast";
......
......@@ -89,7 +89,8 @@ system("/usr/sbin/tcpdump -v -i virbr0 not ip > /tmp/tcpdump.log &");
diag "ssh'ing into $guestip";
my $ssh = Net::OpenSSH->new($guestip,
user => "root",
password => $tck->root_password());
password => $tck->root_password(),
master_opts => [-o => "StrictHostKeyChecking=no"]);
# now generate a arp spoofing packets
diag "generate arpspoof script";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment