-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 session being killed randomly #299
Comments
Shortly after this i realized i was just being a complete idiot and forgot to set a login shell. After doing so everything works fine except that if a non root user logs in and then exits a defunct sshd session is left behind. |
I imagine this will become problematic as this service has ~200+ connection a day made to it.
is what my process looks like. I'm not sure of the specifics of why although sshd is started via runsv the ssh connection for a non root user is not started as a child of it. |
You're not supposed to run my_init with sudo. my_init must be PID 1, otherwise it can't cleanup zombie/defunct processes. |
I imagine this has something to do with docker's init system not functioning properly however when I ssh into a system using this image as root everything is fine and works as expected. If i create another user on the image (since running some commands for my application fail if root runs them) and setting that user up I can log into the system with ssh fine but then get the following errors shortly after logging in.
This is what it looks like from the client side
This is what the logs looks like on the server
Nothing else is indicated it just suddenly closes the connection. Been trying to figure this out for a while was hoping you might have some insight.
The text was updated successfully, but these errors were encountered: