Logging out of console GUI also kills any ssh sessions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
elementary OS |
New
|
Undecided
|
Unassigned |
Bug Description
It seems that when you log out of the main session on the console, it will also log you out (or simply kill) any ssh sessions into the same box that may be open.
Tested in Virtualbox v5.1.18 on Ubuntu 12.04 (Pinguy)
Tested in VMWare Fusion v8.5.6 on Mac OSX Sierra
Install ElementaryOS Loki in a VM by booting the current ISO and installing to a 10G virtual disk with 4G ram and bridged networking. Selecting to install updates and 3rd party items does not alter issue, nor does fully updating system after install.
Log into the main console GUI, see the desktop, open a terminal session.
Install openssh-server via "apt-get update && apt-get -y install openssh-server"
ssh into the VM from elsewhere.
Verify a good session, and check ssh processes with "ps axf | fgrep ssh"
2227 ? Ss 0:00 /usr/sbin/sshd -D
22801 ? Ss 0:00 \_ sshd: nukien [priv]
22837 ? S 0:00 \_ sshd: nukien@pts/0
24301 pts/0 S+ 0:00 \_ grep -F ssh
Log out of the console GUI session by clicking the Power icon in upper right, selecting "Log Out" and clicking the "Log Out" button on the "Are you sure you want to log out?" dialog.
Notice that the ssh session is killed.
The order of logging in doesn't matter - can log in via ssh before or after the console GUI. This also happens even though
KillUserProcess
is uncommented in /etc/systemd/
This seems very similar or related to https:/
tags: | added: loki |
tags: | added: ssh |
Discussing this with Nukie, it seems the SSH session gets cut off by a refused connection.