Title says it all. but here is the scenario:
1) Connected to work via VPN 2) on a Linux client 3) ssh root@server.company.com 4) #init 1 5) ????
???? Will going down to "single user mode" via "init 1" kill and disconnect my root ssh session?
|
feedback
|
|
It should be OK. Whilst the SSH listener daemon is stopped in runlevel 1 on most distros, existing connections should stay up, and networking shouldn't be affected. I wouldn't be doing it without having some sort of remote console connected, though -- you never know when a rogue solar flare is going to come along and drop your network connections for juuuuust long enough to kill your SSH session. EDIT: Some testing indicates that, on Debian systems at least, | |||||||
feedback
|
|
"/etc/init.d/ssh stop" stopped ssh without killing my existing ssh session, but "init 1" did... | |||
|
feedback
|