Files
ChuBlog/deploy/sshd_config
T

35 lines
807 B
Plaintext

Port 2222
ListenAddress 0.0.0.0
HostKey /host-keys/ssh_host_ed25519_key
PidFile /run/sshd.pid
PermitRootLogin no
PasswordAuthentication no
KbdInteractiveAuthentication no
PermitEmptyPasswords no
PubkeyAuthentication yes
AuthenticationMethods publickey
PubkeyAcceptedAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256
RequiredRSASize 2048
AllowUsers git
AuthorizedKeysFile none
AuthorizedKeysCommand /usr/local/bin/chublog-authorized-keys
AuthorizedKeysCommandUser root
AllowAgentForwarding no
AllowTcpForwarding no
AllowStreamLocalForwarding no
GatewayPorts no
PermitTunnel no
X11Forwarding no
PermitTTY no
PermitUserEnvironment no
PermitUserRC no
DisableForwarding yes
MaxAuthTries 3
MaxSessions 1
MaxStartups 3:50:10
LoginGraceTime 20
ClientAliveInterval 15
ClientAliveCountMax 3
LogLevel VERBOSE
UsePAM no