This commit is contained in:
1
rootfs-php74/etc/ssh/sshd_config.d/port.conf
Normal file
1
rootfs-php74/etc/ssh/sshd_config.d/port.conf
Normal file
@@ -0,0 +1 @@
|
||||
Port 22
|
||||
24
rootfs-php74/etc/ssh/sshd_config.d/sshd.conf
Normal file
24
rootfs-php74/etc/ssh/sshd_config.d/sshd.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
HostKey /ssh/ssh_host_rsa_key
|
||||
HostKey /ssh/ssh_host_ecdsa_key
|
||||
HostKey /ssh/ssh_host_ed25519_key
|
||||
|
||||
#SyslogFacility AUTH
|
||||
LogLevel INFO
|
||||
LoginGraceTime 1m
|
||||
PermitRootLogin no
|
||||
PubkeyAuthentication yes
|
||||
MaxAuthTries 3
|
||||
PrintMotd no
|
||||
|
||||
AuthorizedKeysFile /ssh/authorized_keys
|
||||
PasswordAuthentication no
|
||||
|
||||
AllowAgentForwarding no
|
||||
AllowTcpForwarding no
|
||||
GatewayPorts no
|
||||
X11Forwarding no
|
||||
|
||||
Subsystem sftp internal-sftp
|
||||
|
||||
ChrootDirectory /data
|
||||
ForceCommand internal-sftp -d /data/www
|
||||
Reference in New Issue
Block a user