mirror of
https://github.com/Kiritow/image-station.git
synced 2024-03-22 13:30:54 +08:00
.. | ||
Dockerfile | ||
Readme.md |
ssh-base
This is the base image of ssh server, bundled with systemd.
By default, UsePAM
and PasswordAuthentication
are both set to no
.
The Dockerfile contains an alternative way to setup sshd, which could leave UsePAM
set to yes
.
The following fixes are included:
-
/etc/pam.d/sshd
fixpam_loginuid.so
is set to optional, otherwise user will be kicked off after login.https://stackoverflow.com/questions/28134239/how-to-ssh-into-docker
-
/run/nologin
removedPrevents ssh login from printing
System is booting up. Unprivileged users are not permitted to log in yet. Please come back later. For technical details, see pam_nologin(8).
-
systemd-logind.service
fixProtectHostname
is set tono
. This fixes 25 second of hang up every login.