Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ chmod 600 /etc/ssh/ca.pub

:::

### Restart your SSH server
### Reload your SSH server

<Render file="ssh/restart-server" />

Expand Down
20 changes: 4 additions & 16 deletions src/content/partials/cloudflare-one/ssh/restart-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,23 @@

import { Tabs, TabItem, Render } from "~/components"

Once you have modified your SSHD configuration, restart the SSH service on the remote machine.
Once you have modified your SSHD configuration, reload the SSH service on the remote machine for the changes to take effect.

<Tabs>
<TabItem label="Debian/Ubuntu">

For older Debian/Ubuntu versions:
For Debian/Ubuntu:

```sh
sudo service ssh restart
```

For newer Debian/Ubuntu versions:

```sh
sudo systemctl restart ssh
sudo systemctl reload ssh
```
</TabItem>
<TabItem label="CentOS/RHEL">

For CentOS/RHEL 6 and older:

```sh
sudo service sshd restart
```

For CentOS/RHEL 7 and newer:

```sh
sudo systemctl restart sshd
sudo systemctl reload sshd
```

</TabItem>
Expand Down
Loading