# Before using Net::OpenSSH: $Net::OpenSSH::debug = ~512; ... # And then, on the constructor my $ssh = Net::OpenSSH->new(..., master_opts => '-vvv');