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