Spaces:
Paused
Paused
Update sshd_config
Browse files- 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
|
| 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
|
| 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
|