LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2007, 05:44 AM   #1
Miffy2094
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Rep: Reputation: 0
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?
 
Old 06-13-2007, 05:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
just "exit" the shell
 
Old 06-13-2007, 05:59 AM   #3
Miffy2094
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 06-13-2007, 06:08 AM   #4
Fond_of_Opensource
Member
 
Registered: May 2006
Posts: 55

Rep: Reputation: 15
type exit at the prompt of remote machine and press the Enter/return key. you will be back to your machine's prompt
 
Old 06-13-2007, 06:11 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
silly question? Maxorata Solaris / OpenSolaris 8 12-20-2006 05:06 PM
silly question NePt Mandriva 5 02-21-2005 03:31 PM
Silly question Anathema25476 Linux - Software 3 02-11-2004 05:06 AM
silly question ramu_ak Linux - General 2 03-24-2003 09:45 AM
Sorry for such silly question anandc Linux - Newbie 3 03-11-2003 08:10 AM


All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration