LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Silly SSH Question (https://www.linuxquestions.org/questions/linux-newbie-8/silly-ssh-question-561439/)

Miffy2094 06-13-2007 05:44 AM

Silly SSH Question
 
Ok this is a totally n00b question,

but if I'm logged into a CLI on 1 linux machine and then I type ssh testmachine I connect to that machine and can run stuff great! But how do I then go back to my local prompt....i.e. close the SSH session?

acid_kewpie 06-13-2007 05:48 AM

just "exit" the shell

Miffy2094 06-13-2007 05:59 AM

Forgive me, but if I've got the terminal open, and I ssh to another machine, then close the terminal to exit the ssh, I would then have to open another terminal to get back to my CLI.... Can I do all of that in just 1 terminal?

Fond_of_Opensource 06-13-2007 06:08 AM

type exit at the prompt of remote machine and press the Enter/return key. you will be back to your machine's prompt

jschiwal 06-13-2007 06:11 AM

If you want to work in the local shell, but continue the ssh session later, you can enter the escape character followed by [CTRL-z].

You can also change the escape character with the -e option. See "man ssh" for more details.


All times are GMT -5. The time now is 08:08 PM.