【发布时间】:2021-07-16 07:49:56
【问题描述】:
我想知道默认的 OpenSSH 配置文件(Linux 的“sshd_config”)在哪里,或者如果不存在如何生成该文件。
我认为 SSH 设置文件“sshd_config”和“config”是相同的格式和相同的文件,但显然它们不是。因为我将C:\Windows\System32\OpenSSH\sshd_config_default 复制并粘贴到C:/Users/user/.ssh/config 并且我没有工作,我得到一个错误它说格式无效:
PS C:\Users\tmp> ssh user@192.168.0.123
C:\\Users\\tmp/.ssh/config: line 38: Bad configuration option: authorizedkeysfile
C:\\Users\\tmp/.ssh/config: line 76: Bad configuration option: subsystem
Unsupported Match attribute Group
C:\\Users\\tmp/.ssh/config line 84: Bad Match condition
所以,我想知道 Windows OpenSSH 默认配置文件是什么样的。在不知情的情况下,我不知道也无法更改行来更改 SSH 设置。
【问题讨论】: