How to specify -v option in openssh in perl -
i'm using net::openssh module connect node. while connecting node, need specify -v ssh ssh -v admin@hostname. tried using master_opts , default_ssh_opts. didn't work.
my $ssh = net::openssh->new("$user_name\:$password\@$server",strict_mode => 0, default_ssh_opts => [-o => "-v"]);
how can achieved?
my $ssh = net::openssh->new($server, user => $user_name, password => $password, strict_mode => 0, master_opts => ['-v']);
Comments
Post a Comment