SSH config file in Windows

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?

4

2 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.

1

According toOpenSSH Server Configuration for Windows 10 1809 and Server 2019:

In Windows, sshd reads configuration data from %programdata%\ssh\sshd_config by default

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like