Ubuntu: Cancel SSH Session to Server


I use SSH to manage a server on my local network.

ssh username@  

Which works great. When I am finished in the server I normally just X out the command line window which fires a prompt telling me a process is running and closing will kill it. Which is fine.

I would however prefer a command I can use to gracefully close the ssh connect and bring the command line back to my local machine.

Is there such a thing? Or is X-ing out of the window the only way?


Close the remote shell by running:


Or press Ctrl+D.


Check the ESCAPE CHARACTERS section of 'man ssh'. The key sequence for disconnect is enter-tilde-period.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »