From 076a54bdfb5eb9e90bdf23e98e83b4dc96f39517 Mon Sep 17 00:00:00 2001 From: kairee Date: Mon, 21 Dec 2020 10:30:34 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'etc/ssh/sshd=5Fconfig'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/ssh/sshd_config | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 etc/ssh/sshd_config diff --git a/etc/ssh/sshd_config b/etc/ssh/sshd_config new file mode 100644 index 0000000..54bd5af --- /dev/null +++ b/etc/ssh/sshd_config @@ -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 \ No newline at end of file