Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Mac's Terminal App and I know how to connect to an external server via ssh (ssh -l username domain.com). But how do I close the connection once I'm done? Thanks.

share|improve this question

migrated from serverfault.com Feb 9 '12 at 19:51

This question came from our site for system and network administrators.

On the terminal window, you'll simply need to type "exit". It looks like this;

[username@mail0 ~]$ exit
logout
Connection to [IPADDRESS] closed.
share|improve this answer
    
Great, thank you. – Hope4You Feb 9 '12 at 18:13

When I'm on a remote server via ssh this often wont give the desired result. Especially when working with screen remote on a session that I want to continue some time later. Exit would close the screen session. What works instead is to these three buttons / characters in a row:

Enter ~ . 

(including the period at the end)

share|improve this answer

Just close the window or press Ctrl-D, which will terminate the session.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.