Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Net::OpenSSH 模块连接到节点。但是在连接到节点时,我需要将 ssh 的 -v 指定为 ssh -v admin@hostname。尝试使用 master_opts 和 default_ssh_opts。但他们没有工作。
我的 $ssh = Net::OpenSSH->new("$user_name\:$password\@$server",strict_mode => 0, default_ssh_opts => [-o => "-v"]);
如何做到这一点?
my $ssh = Net::OpenSSH->new($server, user => $user_name, password => $password, strict_mode => 0, master_opts => ['-v']);