gitea-app/sshd_config

38 lines
653 B
Text
Raw Normal View History

2018-10-11 03:09:26 +00:00
Port 29418
2025-03-05 13:13:26 +00:00
AddressFamily any
2018-10-11 03:09:26 +00:00
ListenAddress 0.0.0.0
ListenAddress ::
2025-03-05 13:13:26 +00:00
2018-10-11 03:09:26 +00:00
HostKey /app/data/sshd/ssh_host_rsa_key
HostKey /app/data/sshd/ssh_host_ecdsa_key
HostKey /app/data/sshd/ssh_host_ed25519_key
LogLevel INFO
2025-03-05 13:13:26 +00:00
# no reverse DNS lookup
UseDNS no
UsePAM no
AllowAgentForwarding no
AllowTcpForwarding no
PrintMotd no
PrintLastLog no
2018-10-11 03:09:26 +00:00
LoginGraceTime 120
StrictModes yes
PubkeyAuthentication yes
2025-03-05 13:13:26 +00:00
PermitUserEnvironment yes
PermitRootLogin no
2018-10-11 03:09:26 +00:00
ChallengeResponseAuthentication no
2025-03-05 13:13:26 +00:00
PasswordAuthentication no
PermitEmptyPasswords no
HostbasedAuthentication no
2018-10-11 03:09:26 +00:00
2025-03-05 13:13:26 +00:00
AllowUsers git
2018-10-11 03:09:26 +00:00
2025-03-05 13:13:26 +00:00
Banner none
Subsystem sftp /usr/lib/ssh/sftp-server
2018-10-11 03:09:26 +00:00
2025-03-05 13:13:26 +00:00
AcceptEnv GIT_PROTOCOL LANG LC_*
2018-10-11 03:09:26 +00:00