Click to See Complete Forum and Search --> : simple SSH ?


jbstew32
08-21-2001, 06:39 PM
i am admining a CS server and i connect using SSH. I start the server using ssh's pseudo terminal, and i want to know how to exit ssh without killing my CS server that is running...how do i do that?

jbstew32
08-21-2001, 07:46 PM
anyone know how to kill ssh on my local machine without killing the process on the remote machine? it has to be an easy command, i just cant find it :confused:

Strike
08-21-2001, 08:00 PM
Just do

nohup hlds <big list of arguments here> &

and then you can quit without it quitting on you.

That is, assuming that "hlds" is still the command for the HL Dedicated Server these days. :) If not, substitute your command in for "hlds"

[ 21 August 2001: Message edited by: Strike ]

milanuk
08-21-2001, 08:01 PM
Ummm... Not sure what you are talking about, but when I connect to my remote shell account at panix.com, I open up a terminal locally, type 'ssh -l <panixusername> shell.panix.com', which establishes a connection to the ssh server at panix.com, which in turn queries me for a password. I log in, and when I'm done, I just type 'exit', just as if I was closing out a local session. It closes the remote session, and drops me back to my local shell. Pretty much the same way telnet does.

HTH,

Monte

milanuk
08-21-2001, 08:06 PM
Now that I look at your question again, I think I see what you are babbling about. Try using screen. I use it to a) have more that one thing running in the foreground on my panix shell account, i.e. mutt, slrn, vim, etc. each in its own 'window'. When I am done, I issue '^a d', which detaches the screen session, and drops me back to the panix prompt. Then I logout like I described earlier.

HTH,

Monte

Strike
08-21-2001, 08:09 PM
Originally posted by jbstew32:
<STRONG>anyone know how to kill ssh on my local machine without killing the process on the remote machine? it has to be an easy command, i just cant find it :confused:</STRONG>

And afaik there's no way of doing this indefinitely because eventually it would time out and disconnect your session.

godot
08-21-2001, 10:33 PM
You need to get and install screen, then you type this

screen

start your hl server

then type ctrl-a-d to detach the screen

whenever you log back in using that account you can type

screen -r

and enter commands to the server.