添加 'etc/ssh/sshd_config'
This commit is contained in:
26
etc/ssh/sshd_config
Normal file
26
etc/ssh/sshd_config
Normal file
@ -0,0 +1,26 @@
|
||||
Port 46571
|
||||
AddressFamily inet
|
||||
Protocol 2
|
||||
HostKey /etc/ssh/ssh_host_ecdsa_key
|
||||
SyslogFacility AUTHPRIV
|
||||
PermitRootLogin no
|
||||
AuthorizedKeysFile .ssh/authorized_keys
|
||||
PasswordAuthentication no
|
||||
ChallengeResponseAuthentication no
|
||||
GSSAPIAuthentication no
|
||||
GSSAPICleanupCredentials no
|
||||
GSSAPIStrictAcceptorCheck no
|
||||
GSSAPIKeyExchange no
|
||||
UsePAM yes
|
||||
X11Forwarding yes
|
||||
TCPKeepAlive yes
|
||||
ClientAliveInterval 60
|
||||
UseDNS no
|
||||
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
|
||||
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
|
||||
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
|
||||
AcceptEnv XMODIFIERS
|
||||
Subsystem sftp /usr/libexec/openssh/sftp-server
|
||||
|
||||
Match User kairee
|
||||
PasswordAuthentication yes
|
Reference in New Issue
Block a user