LinuxQuestions.org
Help answer threads with 0 replies.
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 09-15-2008, 02:51 AM   #1
sylvaticus
Member
 
Registered: Apr 2006
Posts: 49

Rep: Reputation: 15
Permanent SSH session (like VNC, but text)


Hello.. very often I use VNC connection to my server to then use.. the console ! :-(

I'm wander if exist a way to achieve a permanent console session trough SSH.

As a "permanent console session" I mean a session that is started on the server and it runs independently from having a client attached.
So I can start a program, disconnect, and when I connect it back I am attached to the terminal again and see the progress of my program...

I know of nohup, but I would lost the interactivity...

Any suggestion??
 
Old 09-15-2008, 04:22 AM   #2
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 38
screen. You need screen. The most underrated, awesome, shell app ever made.
Quick start guide:
Type 'screen' to start a new session.
C-a c to create a new shell.
C-a n and C-a p to go to next and previous shells.
C-a " to see a list of shells.
C-a d to detach a screen session.
'screen -r' the next time you want to reattach to that session.
 
Old 09-16-2008, 01:05 AM   #3
sylvaticus
Member
 
Registered: Apr 2006
Posts: 49

Original Poster
Rep: Reputation: 15
I saw the man pages is 2840 rows..

However.. what C-a c stand for ??

When I type screen I got a page which end with "type return or space to close" what should I do from there ??
 
Old 09-17-2008, 10:22 AM   #4
crontab
Member
 
Registered: Jun 2005
Distribution: Various
Posts: 72

Rep: Reputation: 15
"C-a c" means "hit Ctrl+A, and then hit C." All screen commands begin with Ctrl+A, followed by another key.

One of the (many) reasons screen is awesome is because you can detach a screen, disconnect from the server entirely, and it'll still be there whenever you come back. All you have to do is reattach it.

Here are a couple good tutorials:

http://www.linuxhacks.org/tutorials/...n_tutorial.php
http://www.kuro5hin.org/story/2004/3/9/16838/14935
 
  


Reply

Tags
connection, permanent, ssh, vnc


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
VNC session conflict jhwilliams Linux - Software 2 08-13-2007 11:37 PM
ssh -> perl -> spawn background proces hangs ssh session rhoekstra Programming 2 04-25-2006 01:05 AM
VNC Session mindjet Suse/Novell 4 02-11-2006 09:49 AM
vnc into session 0 fraz Linux - Networking 5 11-21-2005 07:36 AM
VNC Session Handling azzurro Linux - Networking 16 09-21-2004 04:43 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration