This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Restart ssh session

Tags: None
(comma "," separated)
aseques
Registered Member
Posts
63
Karma
0

Restart ssh session

Thu May 05, 2022 10:30 am
Hi, in some cases when I'm connected to an ssh box, after some time de connection gets stuck (for exemple if the firewall detects some time of inactivity). A restart session button would be very welcome. I am not looking for a Keepalive tool, but more of a solution for not having to close the terminal an open a new one and reenter the connection details
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS

Re: Restart ssh session

Thu May 05, 2022 10:49 am
There is a timeout option you can set to automatically send an alive signal.
Code: Select all
ssh -o ServerAliveInterval=60


If your connection breaks, you have to reconnect as you are not looking for a "keepalive tool" like autossh which automatically reconnects on broken connections.
To avoid entering credentials, there are some other tools like ssh-agent for public key, the ssh config file, ...


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]