marcpascual has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Is there a way to simulate 'ssh -q' on Net::OpenSSH or Net::SSH::Perl ? Thanks, Marc

Replies are listed 'Best First'.
Re: simulating 'ssh -q' on Net::OpenSSH
by kennethk (Abbot) on Apr 11, 2009 at 13:35 UTC
    From the Net::OpenSSH documentation, there are master options that include redirecting or suppressing STDOUT and/or STDERR messages ssh would generate. Not exactly what you are looking for, but it could provide your basic functionality.
Re: simulating 'ssh -q' on Net::OpenSSH
by salva (Canon) on Apr 13, 2009 at 07:35 UTC
    $ssh = Net::OpenSSH->new($host, master_opts => ['-q']);