Commit f395d9a3 authored by Kirk Webb's avatar Kirk Webb

Ignore user's SSH known hosts file.

parent a758717f
......@@ -103,7 +103,7 @@ sub createExpectObject($)
my $self = shift;
my $id = "$self->{NAME}::createExpectObject()";
my $error = 0;
my $spawn_cmd = "ssh -l $self->{USERNAME} $self->{NAME}";
my $spawn_cmd = "ssh -o UserKnownHostsFile=/dev/null -l $self->{USERNAME} $self->{NAME}";
# Create Expect object and initialize it:
my $exp = new Expect();
if (!$exp) {
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