From 774346c8d07bb9983170140a9eb40843a984510e Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sun, 6 Sep 2015 08:42:29 +0300 Subject: [PATCH] fix sshd_config --- etc/ssh/sshd_config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etc/ssh/sshd_config b/etc/ssh/sshd_config index 2c3bf4a6..71b0eb8f 100644 --- a/etc/ssh/sshd_config +++ b/etc/ssh/sshd_config @@ -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