svarbox/config/sshd_config

21 lines
477 B
Text
Raw Normal View History

2025-10-18 11:05:20 +03:00
# minimal sshd_config for container
Port 22
ListenAddress 0.0.0.0
Protocol 2
PermitRootLogin no
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM yes
2025-10-18 23:29:41 +03:00
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no
2025-10-18 11:05:20 +03:00
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
# Force our wrapper for dosuser (prevents a normal shell)
Match User dosuser
ForceCommand /usr/local/bin/dos-shell
PasswordAuthentication yes
PermitTTY yes