Some time ago I logged in from my laptop to my stationary via ssh. During this I had to hard reboot the stationary because of a total freeze of the system. Ever since the stationary system believes that there still is a live ssh session from the laptop. This shows every time I shuts down the stationary and a indicates with a note asking if I want to kill the, ssh, session. Every time I press ok and still the next time I have to answer the same question again.
How can I get rid of the stale session? I have logged in (and loogged out) via ssh several times from the laptop after the freeze.
So you say that the process can percist a reboot or even a shutdown?
If I was unclear before: Every time I shutdown my computer I have to force logout of a ssh session that really isn’t there anymore. I answer ok on the question and the computer is turned off. Next time the computer is on and I want to shutdown: same story again.
Something is really wrong. SSH session can not be kept across reboots. Remove all you network cables, reboot the system and see if you have any ssh connection process or not.
Also, the session can’t be there if your laptop is switched off.
If you see a session with your network cable connected, it could be from a hacker outside. Use the netstat command to see from which IP address the connection is established.
Perhaps the user is still in /var/run/utmp where the logged in users are kept. A bit hard but maybe it helps: Create an empty file with that name and overwrite the original file. After that log out and in and have a look if the problem still persists.