40
7
I connected to a server via SSH in Terminal (OSX), but now anytime I open Terminal, it logs me back in. If I logout, I cannot type anything or do anything.
How do I exit back to the regular terminal so I can run a script on my mac? I realize this is probably a really noob question.
1It should be either
exit
orlogout
to reply to the actual question. Closing the terminal ends the session, but it is not the "clean" way to do it – Marius – 2016-10-03T12:19:03.323I get this message and then cannot type anymore:
[Process completed]
– miles – 2012-03-23T19:54:38.897That is because you are in the local shell for your mac and exiting the process would be my guess. Typically you need to provide credentials to log into another server unless you have ssh keys setup. Are you sure that you are connected to the other server? – J Baron – 2012-03-23T20:35:59.113
this will exit whole terminal with ssh, @coffeeRain's answer is the correct one - use
exit
– OZZIE – 2014-02-10T16:12:57.8707You can also just type
logout
– JuJoDi – 2014-02-13T00:37:02.467