Web Hosting Talk







View Full Version : Ending an SSH Session


openXS
11-09-2004, 10:40 PM
I was logged into my SSH as root and the connection kept dying out. It happened several times and the loads started to shoot up. I'm sure its because of those ssh sessions that have'nt been terminated as yet.

Whats the best way to terminate a previous SSH Session?

Thanks.

TechResponse
11-09-2004, 11:41 PM
kill the process

datums
11-09-2004, 11:50 PM
ps afx | grep ssh, kill the process.
Having multiple ssh session should affect the load on the server the way you described.

eBoundary
11-10-2004, 10:25 AM
Originally posted by datums
ps afx | grep ssh, kill the process.
Having multiple ssh session should affect the load on the server the way you described.

chances are they'll kill off the parent process and lock themself out of the box.

try `ps afxu |egrep <youruserID>|egrep ssh` and kill of those processes. This command will exclude the Root owned parent processes.

datums
11-10-2004, 02:31 PM
Thanks eBoundary, thinking local.

openXS
11-10-2004, 02:42 PM
Not sure if I understood that correctly. Can you please list the commands step-by-step.

Thanks