SSHProcessError The ssh process was terminated. at line xxx #### my $ssh = Net::SSH::Expect->new ( host => "$current_server", user => "$user", raw_pty => 1 ); # test the login eval { $login_output = $ssh->run_ssh(); }; # I've tried to capture $@ or $! here but it never gives me anything useful ($ssh->read_all(2) =~ />\s*|$\s*\z/) or die "where's the remote prompt?"; $ssh->exec("stty raw -echo");