LinuxQuestions.org
Review your favorite Linux distribution.
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 05-07-2009, 09:04 AM   #1
neoform
Member
 
Registered: Apr 2009
Posts: 41

Rep: Reputation: 15
Accessing an Active SSH Session


Is there a way to access/log in to an active session? (using putty?)

pts/0 is running a process on my computer at home, i'd like to see how far a long it is..
 
Old 05-07-2009, 10:51 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
You can't with the current session, but in the future, ssh to the remote machine, run 'screen', then run your process inside of screen. use ctrl-a d to detach from screen and your process continues. to check on the process, ssh back to the machine and run 'screen -r' and you'll reattach to the process to check up on it.
 
Old 05-07-2009, 11:24 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Yup, screen is the way to go. There's a lighter alternative called dtach or something like that, but I never bothered to check it.
 
Old 05-07-2009, 04:50 PM   #4
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
nohup is also a valid alternative when you dont need an interactive way back to the session. It will log all output to a specified file.
 
  


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
SSH concurrent session limit and idle session time out lasygsd Linux - Newbie 3 10-30-2014 08:56 AM
Remote into active session??? tiger.woods Linux - General 11 03-29-2006 07:16 AM
Telnet/SSH screen stops responding after a while but the session is still active alllle Linux - Networking 4 05-04-2004 01:52 PM
Active X session Sonte Linux - Newbie 1 03-06-2004 02:43 PM
Accessing the Active Directory GoRinNoSho Linux - Newbie 3 06-27-2003 10:44 AM


All times are GMT -5. The time now is 07:11 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