-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sshd.socket enters failed state when sshd connection is gracefully terminated #29897
Comments
And tried same steps on Fedora 38, this doesn't happen. I'm guessing there is some configuration in systemd I'm not able to figure out. Need assistance in finding it out. Thanks. |
How does your sshd@.service unit template file look like? Should have a line like this:
the important part is the |
@poettering Awesome, this worked. |
More info at: systemd/systemd#29897 Change-Id: Idd1180f21e7e5b14faaca13417bdb4dea7410c55 Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com> Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/22306 Tested-by: gerrit-photon <photon-checkins@vmware.com> Reviewed-by: Tapas Kundu <tkundu@vmware.com>
More info at: systemd/systemd#29897 Change-Id: I6481acfcdfc4a8971abed9935e49cd393b7f1086 Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com> Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/22310 Tested-by: gerrit-photon <photon-checkins@vmware.com> Reviewed-by: Tapas Kundu <tkundu@vmware.com>
More info at: systemd/systemd#29897 Fixed a mishap in sshd homedir location. Newer sshd uses /usr/share/empty.sshd as its home dir. Change-Id: I6481acfcdfc4a8971abed9935e49cd393b7f1086 Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com> Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/22309 Reviewed-by: Tapas Kundu <tkundu@vmware.com> Tested-by: Tapas Kundu <tkundu@vmware.com>
systemd version the issue has been seen with
254.1
Used distribution
Photon OS
Linux kernel version used
6.1.28
CPU architectures issue was seen on
x86_64
Component
systemctl
Expected behaviour you didn't see
sshd connections should be terminated properly and
systemctl --failed
should not show failed sshd entries.Unexpected behaviour you saw
And later when I did
systemctl --failed
Here is my sshd config.
Steps to reproduce the problem
systemctl enable --now sshd.socket
Do ssh and exit using Ctrl-D
Do ssh again, check
systemctl --failed
Additional program output to the terminal or log subsystem illustrating the issue
No response
The text was updated successfully, but these errors were encountered: