my $sshSession = Net::SSH::Perl->new($address, debug => 'true', protocol => '2,1'); # Login works fine $sshSession->login('xxxxxx','xxxxx') || die "Ssh login Didn't work"; my $command = "ps aux"; # Execute a command my ($out, $err, $exit) = $sshSession->cmd($command); # hangs while executing ...