我已在我的
.ssh/config
文件中为特定主机输入以下选项:
ForkAfterAuthentication yes
SessionType none
但是,当尝试连接到主机时,失败并显示:
.ssh/config: line 7: Bad configuration option: forkafterauthentication
.ssh/config: line 8: Bad configuration option: sessiontype
.ssh/config: terminating, 2 bad configuration options
直接在命令行上使用时,相同的选项可以正常工作。
是否有特定版本的 OpenSSH 在
.ssh/config
文件中添加了这些选项?我用 OpenSSH_7.2p2
和 OpenSSH_8.2p1
尝试过。
根据 https://www.openssh.com/releasenotes.html,这两个 ssh_config 选项都是在 8.7 版本中引入的。 (拉取请求是https://github.com/openssh/openssh-portable/pull/231。)