> For the complete documentation index, see [llms.txt](https://huataihuang.gitbook.io/cloud-atlas-draft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huataihuang.gitbook.io/cloud-atlas-draft/service/ssh/sshd_multi_port.md).

# sshd服务多端口设置

有时候也需要让SSH服务器能够监听多个端口对外提供服务，或者修改sshd的监听端口。这个实现都是通过修改 `/etc/ssh/sshd_config` 来实现的：

```
Port 22
Port 222
```

然后重启sshd

```
sudo systemctl restart sshd
```

## 参考

* [Configuration for multiple port SSH](https://serverfault.com/questions/284566/configuration-for-multiple-port-ssh)
