Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-12-03 19:51:07

pwariche
Member
Registered: 2020-12-03
Posts: 3

xfce4-terminal with multiple ssh sessions

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

#2 2020-12-03 21:51:52

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,047

Re: xfce4-terminal with multiple ssh sessions

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

#3 2020-12-04 20:48:06

pwariche
Member
Registered: 2020-12-03
Posts: 3

Re: xfce4-terminal with multiple ssh sessions

This seems to work, Thank you very much ToZ, I really appreciate the help!

Offline

Board footer

Powered by FluxBB