LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2006, 03:52 AM   #1
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Rep: Reputation: 15
Continous SSH session


Hi guys.
I know that I can use VNC to log in, do stuff and close the client without closing the session and when you open up the VNC client again to log in (except you don't log in, you just connect), the session is still there as if you have never left. I was wondering if the same could be accomplished with SSH in Linux (SuSE if it helps ), and if so, how?

Thanks guys!
 
Old 11-10-2006, 04:51 AM   #2
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
I use the 'screen' program for this. You can create as many 'screens' as you want, set them to do stuff, then 'detach' them. Once you're in a screen, everything is done with Ctrl-A-<something> - create new screen, close screen, swap between screens. And I'm pretty sure you can log all output to a file very easily too, though I don't bother.

Works very well.

Sorry don't know the easiest way to find it using SuSE. Look in your package manager for 'screen'.
 
Old 11-10-2006, 04:54 AM   #3
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
It's not actually a 'continuous ssh session' though. It's independent of ssh. You can open the 'screens' from any terminal, including one in an X-session on the local machine.
 
Old 11-10-2006, 05:14 AM   #4
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Original Poster
Rep: Reputation: 15
What I want to do is this:
From either Windows or Linux I want to remotely connect via SSH to my Linux Gateway server (SuSE) and for instance let wget download something. If I were sitting at my father's PC (for example), I don't want him or my brothers to fiddle around on my linux account (not that they would, I'm just using it as an example), so I close the Putty (windows) client and then later I check how far it downloaded by going to my PC, opening up Putty in Windows or Konsole in Linux (depending weither I'm in Windows or Linux), connecting to the server with my account and see how far it downloaded.

Anyone get what I'm saying?
 
Old 11-10-2006, 05:17 AM   #5
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Original Poster
Rep: Reputation: 15
Wait this seems adequate: http://wiki.linuxquestions.org/wiki/Nohup
 
Old 11-10-2006, 05:46 AM   #6
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Original Poster
Rep: Reputation: 15
I'm using nohup right now... it is exactly what I'm looking for! Cool! I found this in the "Similar threads section": http://www.linuxquestions.org/questi...d.php?t=421954

I just output to a log file to monitor its progress.
 
Old 11-10-2006, 06:58 AM   #7
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Seriously, screen is what you want. Much easier than hohup. Read this:
http://www.rackaid.com/resources/tips/linux-screen.cfm
and this:
http://rpmfind.net/linux/RPM/suse/9....2-46.i586.html
 
  


Reply

Tags
connection, linux, remote, ssh



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
Killing an SSH Session chatmasta Linux - Networking 5 05-27-2015 02:51 AM
ssh -> perl -> spawn background proces hangs ssh session rhoekstra Programming 2 04-25-2006 01:05 AM
How to run a program in an ssh session that will run after you close out the session? dr_zayus69 Linux - Networking 5 03-05-2006 07:15 PM
persistent ssh session apepost Linux - Networking 4 11-12-2005 12:16 AM
SSH Session Monitoring? totalrockage Linux - Networking 1 04-08-2005 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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
Open Source Consulting | Domain Registration