mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 03:02:52 +01:00
fix sshd_config
This commit is contained in:
parent
68c6da5aec
commit
774346c8d0
@ -44,6 +44,10 @@ HostKey /etc/ssh/ssh_host_rsa_key
|
||||
# ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
|
||||
# ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key
|
||||
|
||||
# Listen on the following TCP ports, default 22.
|
||||
# /etc/ssh/sshd_config ...: ports must be specified before ListenAddress.
|
||||
Port 22
|
||||
|
||||
# Listen on all IPv4 & IPv6 addresses.
|
||||
ListenAddress 0.0.0.0
|
||||
ListenAddress ::
|
||||
@ -59,9 +63,6 @@ PasswordAuthentication no
|
||||
# user.
|
||||
PermitRootLogin No
|
||||
|
||||
# Listen on the following TCP ports, default 22.
|
||||
Port 22
|
||||
|
||||
# Print /etc/motd (or /etc/profile or equivalent) on login. It's already
|
||||
# done by PAM, so no need for duplicate MOTDs.
|
||||
PrintMotd no
|
||||
|
Loading…
Reference in New Issue
Block a user