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? |
just "exit" the shell
|
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?
|
type exit at the prompt of remote machine and press the Enter/return key. you will be back to your machine's prompt
|
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. |