privateone commited on
Commit
e9d7e0f
·
verified ·
1 Parent(s): 29945d5

Update sshd_config

Browse files
Files changed (1) hide show
  1. sshd_config +2 -2
sshd_config CHANGED
@@ -14,7 +14,7 @@ Include /etc/ssh/sshd_config.d/*.conf
14
 
15
  Port 2222
16
  #AddressFamily any
17
- ListenAddress 0.0.0.0
18
  #ListenAddress ::
19
 
20
  HostKey /etc/ssh/ssh_host_rsa_key
@@ -36,7 +36,7 @@ PermitRootLogin yes
36
  #MaxAuthTries 6
37
  MaxSessions 4
38
 
39
- PubkeyAuthentication no
40
 
41
  # Expect .ssh/authorized_keys2 to be disregarded by default in future.
42
  AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
 
14
 
15
  Port 2222
16
  #AddressFamily any
17
+ ListenAddress 127.0.0.1
18
  #ListenAddress ::
19
 
20
  HostKey /etc/ssh/ssh_host_rsa_key
 
36
  #MaxAuthTries 6
37
  MaxSessions 4
38
 
39
+ PubkeyAuthentication yes
40
 
41
  # Expect .ssh/authorized_keys2 to be disregarded by default in future.
42
  AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2