Skip to main content
Topic: SSH session (Read 1664 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

SSH session

Hello,
I've installed OpenSSH and can connect in to the Artix box fine. If I close the connection (or lose connectivity) then anything I started is lost, not just the things I would expect - for example, if I am using screen then when I reconnect there are no sessions, or if I start vnc server the process dies when SSH disconnects. This isn't how things worked for me in Gentoo but I don't know where the difference is - is it to do with the OpenSSH implementation, or the Bash profile, or something else? Thanks.

Re: SSH session

Reply #1
I've actually noticed a similar problem myself. When I explicitly put things in the background and detach it from the terminal, the job is still killed when I close the ssh connection. I think maybe some package is configured/has some compilation flag that does this behavior (elogind?). Ordinarily,  yeah it's not supposed to happen.

Re: SSH session

Reply #2
Set KillUserProcesses=no in /etc/elogind/logind.conf
ARMtix

Re: SSH session

Reply #3
Thank you phoenix_king_rus! That seems to have done the trick (after a reboot). This will make my life a lot easier. Much appreciated.