aboutsummaryrefslogtreecommitdiffstats
path: root/include/nms.pm
diff options
context:
space:
mode:
Diffstat (limited to 'include/nms.pm')
-rwxr-xr-xinclude/nms.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/nms.pm b/include/nms.pm
index 589f7f0..e532a05 100755
--- a/include/nms.pm
+++ b/include/nms.pm
@@ -47,7 +47,8 @@ sub switch_connect_ssh($) {
my ($ip) = @_;
my $ssh = Net::OpenSSH->new($ip,
user => $nms::config::tacacs_user,
- password => $nms::config::tacacs_pass);
+ password => $nms::config::tacacs_pass,
+ master_opts => [ "-o", "StrictHostKeyChecking=no" ]);
my ($pty, $pid) = $ssh->open2pty({stderr_to_stdout => 1})
or die "unable to start remote shell: " . $ssh->error;