From d8cecd6d9b6a0ff463d20102e2632ca2b219efc9 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 12 Jul 2019 10:07:26 +0200 Subject: [PATCH] use openssh-client-ssh1 for legacy ssh1 --- dell-switch.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dell-switch.pl b/dell-switch.pl index c48184f..826b41e 100755 --- a/dell-switch.pl +++ b/dell-switch.pl @@ -31,7 +31,11 @@ if ( ! @commands && ! -t STDIN && -p STDIN ) { # we are being piped into } warn "\n## ssh $ip\n"; -my $ssh = Net::OpenSSH->new($ip, user => $login, passwd => $passwd, default_ssh_opts => [-o => "StrictHostKeyChecking=no"]); +my $ssh = Net::OpenSSH->new($ip, user => $login, passwd => $passwd, + ssh_cmd => '/usr/bin/ssh1', # apt-get install openssh-client-ssh1 + master_opts => [ -o => "StrictHostKeyChecking=no", ], + default_ssh_opts => [ -o => "StrictHostKeyChecking=no", ], +); my ($pty ,$pid) = $ssh->open2pty(); if ( ! $pty ) { warn "ERROR: can't connect to $ip, skipping"; -- 2.20.1