How do I kill a dead session? Ie, a session where the user is not connected to the ssh-session anymore, but the session still lingers on the ssh-server.
- Check for the user's session and the pty/n: # w
- Enter: ps fax|grep pty/0
- Note the process number for the sshd process from Â§3
- Enter: kill <process number>
- Repeat Â§1 to check that the user's been logged off.