Skip to main content
added 204 characters in body
Source Link
bmike
  • 241.3k
  • 80
  • 433
  • 958

You can send a kill signal to the ssh process like others withonce you know the process ID of that tunnel task.

kill -9 $PID

You can findshould search for the ssh session process ID withamongst the others having ssh in it (sshd, pgrep, the tunnel process and perhaps several others.)

pgrep ssh

Choose carefully which process you kill.

You can kill the ssh process like others with

kill -9 $PID

You can find ssh session process ID with

pgrep ssh

You can send a kill signal to the ssh process once you know the process ID of that tunnel task.

kill -9 $PID

You should search for the ssh session process ID amongst the others having ssh in it (sshd, pgrep, the tunnel process and perhaps several others.)

pgrep ssh

Choose carefully which process you kill.

Source Link
Quanlong
  • 1.9k
  • 3
  • 18
  • 20

You can kill the ssh process like others with

kill -9 $PID

You can find ssh session process ID with

pgrep ssh