I'm looking for a way to use the ssh_config files in Windows, and I know in Linux it's located at ~/.ssh/config.
Where is the Windows location and is there any difference in syntax or paths used inside the file?
42 Answers
You can create a config file at %UserProfile%\.ssh\config. I don't have a source for this, but it works for SSH connections in PowerShell and remote connections within Visual Studio Code.
I don't think OpenSSH config in Windows 10 differs from Linux in terms of syntax; I've copied and pasted configs from Windows 10 to WSL and to native Linux machines with no issues.
1According toOpenSSH Server Configuration for Windows 10 1809 and Server 2019:
3In Windows, sshd reads configuration data from
%programdata%\ssh\sshd_configby default