Reputation: 170
So, I have configured a key based login:
but now I would like to force all connections to use the keybased method only. Wih linux this happens by modifying sshd_config file, but I can not find it on Windows.
Upvotes: 0
Views: 97
Reputation: 170
Seems to be that on Windows the way is similar and the path is "C:\ProgramData\ssh\sshd_config".
Based on this https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration config file is found from folder path "%programdata%\ssh\sshd_config"
And for the %programdata% (is found from https://www.howtogeek.com/278562/what-is-the-programdata-folder-in-windows/) seems to be on C drive, making the full path "C:\ProgramData\ssh\sshd_config". Though the programdata folder is hidden and it should be shown through file explorer options.
Upvotes: 0