mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-23 03:39:22 +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 ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
|
||||||
# ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_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.
|
# Listen on all IPv4 & IPv6 addresses.
|
||||||
ListenAddress 0.0.0.0
|
ListenAddress 0.0.0.0
|
||||||
ListenAddress ::
|
ListenAddress ::
|
||||||
@ -59,9 +63,6 @@ PasswordAuthentication no
|
|||||||
# user.
|
# user.
|
||||||
PermitRootLogin No
|
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
|
# Print /etc/motd (or /etc/profile or equivalent) on login. It's already
|
||||||
# done by PAM, so no need for duplicate MOTDs.
|
# done by PAM, so no need for duplicate MOTDs.
|
||||||
PrintMotd no
|
PrintMotd no
|
||||||
|
Loading…
Reference in New Issue
Block a user