Commit fc04811a authored by Robert Ricci's avatar Robert Ricci

Add an '|| read' after the ssh command, so that if it fails, the

xterm will stay open, so that the user can figure out what's going
on.
parent a3d9718e
......@@ -87,9 +87,9 @@ if (!defined($hostname)) {
# Exec an ssh.
#
if (!defined($gateway)) {
exec "xterm -T $hostname -e ssh $port $login $hostname";
exec "xterm -T $hostname -e 'ssh $port $login $hostname || read userinput'";
}
else {
exec "xterm -T $hostname -e ssh $login -tt $gateway ".
"ssh -o StrictHostKeyChecking=no $port $hostname";
exec "xterm -T $hostname -e 'ssh $login -tt $gateway ".
"ssh -o StrictHostKeyChecking=no $port $hostname || read userinput'";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment