
我正在尋找一種ssh_config
在 Windows 中使用這些文件的方法,並且我知道在 Linux 中它位於~/.ssh/config
.
Windows 位置在哪裡?
答案1
您可以在 處建立一個設定檔%UserProfile%\.ssh\config
。我沒有這方面的來源,但它適用於 PowerShell 中的 SSH 連線和 Visual Studio Code 中的遠端連線。
我認為 Windows 10 中的 OpenSSH 設定在語法上與 Linux 沒有什麼不同;我已將配置從 Windows 10 複製並貼上到 WSL 和本機 Linux 計算機,沒有出現任何問題。
答案2
根據 Windows 10 1809 和 Server 2019 的 OpenSSH 伺服器配置:
%programdata%\ssh\sshd_config
在 Windows 中,sshd預設讀取配置數據