When I started using VSCode to SSH to my remote machine, it was giving me this error:
Bad owner or permissions on C:\Users\user/.ssh/config
Then I manually set the SSH config file path in VSCode settings:
Remote.SSH: Config File
The absolute file path to a custom SSH config file.
C:Usersuser.sshconfig
And it solved the issue, I am now able to SSH from VSCode, but when I want to SSH from CMD, it still gives me this error.
How can I set the config file path to C:Usersuser.sshconfig
as I did with VSCode so that the CMD will also use it?