Ubuntu: Cancel SSH Session to Server



Question:

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

ssh username@192.168.1.210  

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?


Solution:1

Close the remote shell by running:

exit  

Or press Ctrl+D.


Solution:2

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
Previous
Next Post »