How Do You Keep a Session Alive in Unix?
Contents How Do I Keep My Ssh Session Alive After Disconnecting? How to Keep Processes Running After Ending Ssh Session Ssh into Your Remote Box. Type Screen...
Contents
How do I keep my ssh session alive after disconnecting?
How to keep processes running after ending ssh session
- ssh into your remote box. type screen Then start the process you want.
- Press Ctrl-A then Ctrl-D. This will detach your screen session but leave your processes running. …
- If you want to come back later, log on again and type screen -r This will resume your screen session, and you can see the output of your process.
How do I keep my ssh session alive?
To set the SSH keep alive option on the server:
- Log in as root.
- Edit the file at /etc/ssh/sshd_config.
- Add this line to the file: ClientAliveInterval 60.
- Save the file.
- Restart sshd on the server.