You are not logged in.
Pages: 1
Hello,
I have a question wrt xfce4-terminal. I regularly start several ssh sessions to different devices and use a simple command line
xfce4-terminal --geometry=175x55 -T "NX-1" -x bash -c "ssh -t admin@192.168.1.230"
xfce4-terminal --tab -T "NX-2" -x bash -c "ssh -t admin@192.168.1.231"
xfce4-terminal --tab -T "PA-1" -x bash -c "ssh -t admin@192.168.1.140"
xfce4-terminal --tab -T "PA-2" -x bash -c "ssh -t admin@192.168.1.139"
xfce4-terminal --tab -T "PA-3" -x bash -c "ssh -t admin@192.168.1.141"
xfce4-terminal --tab -T "PA-4" -x bash -c "ssh -t admin@192.168.1.143
Unfortunately the tabs disappear as soon as the ssh timeout. Is there a way to keep the tab open when the session timeout? This way I can just re-initiate the connection to the remote device.
Thanks in advance and my apologies if this has been asked before, I could not find an answer.
regards,
/Patrick
Offline
Hello and welcome.
Try creating another bash instance after the command:
xfce4-terminal --tab -T "NX-2" -x bash -c "ssh -t admin@192.168.1.231; bash"
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
This seems to work, Thank you very much ToZ, I really appreciate the help!
Offline
Pages: 1
[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 519.82 KiB (Peak: 520.66 KiB) ]