Skip to content

Commit

Permalink
dev/ssh: make conditional inclusion more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Jul 13, 2024
1 parent 60dca6e commit 19b82e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dev/ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ sshd 接受 SIGHUP 信号作为重新载入配置文件的方式。`sshd -t` 命

## 拆分配置文件 {#include}

从 OpenSSH 7.3p1 开始,ssh_config 和 sshd_config 都支持 `Include` 选项,可以在主配置文件中 include 其他文件。与 C 的 `#include` 或 Nginx 的 `include` 不同,SSH config 里的 `Include` ****等价于文本插入替换,并且 `Include` 可以出现在 `Host``Match` 块中。因此一个(不太常见的)坑是:
从 OpenSSH 7.3p1 开始,ssh_config 和 sshd_config 都支持 `Include` 选项,可以在主配置文件中 include 其他文件。与 C 的 `#include` 或 Nginx 的 `include` 不同,SSH config 里的 `Include` ****等价于文本插入替换,并且 `Include` 可以出现在 `Host``Match` 块中,出现在这两个块中的 `Include` 会被视作条件包含。因此一个(不太常见的)坑是:

??? failure "错误写法"

Expand Down

0 comments on commit 19b82e3

Please sign in to comment.