Commit e372ad1f authored by Craig Norris's avatar Craig Norris

Merge branch 'docs-sshd-test-before-restart' into 'master'

Add step to test modified sshd_config before restarting SSH daemon

See merge request gitlab-org/gitlab!71250
parents 0e35c146 be8a8944
......@@ -126,7 +126,14 @@ MaxStartups 100:30:200
`100:30:200` means up to 100 SSH sessions are allowed without restriction,
after which 30% of connections are dropped until reaching an absolute maximum of 200.
Once configured, restart the SSH daemon for the change to take effect.
After you modify the value of `MaxStartups`, check for any errors in the configuration.
```shell
sudo sshd -t -f /etc/ssh/sshd_config
```
If the configuration check runs without errors, it should be safe to restart the
SSH daemon for the change to take effect.
```shell
# Debian/Ubuntu
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment