Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH sessions continue to be alive after deamon is stopped #8

Closed
manojampalam opened this issue Oct 12, 2015 · 6 comments
Closed

SSH sessions continue to be alive after deamon is stopped #8

manojampalam opened this issue Oct 12, 2015 · 6 comments

Comments

@manojampalam
Copy link
Contributor

  • sshd.exe -r
  • Start a remote session
  • Ctrl+C deamon
  • Remote session is still active (as the forked child sshd.exe is not terminated)
@manojampalam
Copy link
Contributor Author

I see that the relevant code to abort server sessions is currently commented out. We can take care of it later.

@ariscop
Copy link

ariscop commented Oct 20, 2015

This is intended, at least on unix, so the daemon can be restarted without killing active sessions

@nachfuellbar
Copy link

I think forked children should continue to run
i.e. if you change sshd configuration and you want to restart the daemon to apply settings

@ariscop
Copy link

ariscop commented Oct 21, 2015

Could do something like a service stop kills active sessions, but restart does not? i'm not familiar enough with windows services to know if thats possible

@nachfuellbar
Copy link

Maybe this is possible

Just want to know:
Is stopping connections on stopping of daemon needed (or really wanted)?
On linux i kill all ssh processes if i need to (doesn't happen too often)
Mostly i kill specific sessions; till now i've never needed all open connections to be closed on sshd restart or stop

@manojampalam
Copy link
Contributor Author

Differentiating between stop service and restart service is not possible. I'll close this given similar functionality in Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants