LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Permanent SSH session (like VNC, but text) (http://www.linuxquestions.org/questions/linux-networking-3/permanent-ssh-session-like-vnc-but-text-669974/)

sylvaticus 09-15-2008 02:51 AM

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??

indeliblestamp 09-15-2008 04:22 AM

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.

sylvaticus 09-16-2008 01:05 AM

I saw the man pages is 2840 rows.. :study:

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 ??

crontab 09-17-2008 10:22 AM

"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


All times are GMT -5. The time now is 11:45 AM.