in reply to simulating 'ssh -q' on Net::OpenSSH

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.
  • Comment on Re: simulating 'ssh -q' on Net::OpenSSH