Re: Set up WinSCP with OpenSSH for SSH public key authentication does not work
Please follow these instructions:
https://winscp.net/eng/docs/guide_windows_openssh_server#key_authentication
The WinSCP's Install Public Key into Server feature assumes Linux server and (tries to) sets Linux permissions. What has no effect on Windows server. Even if WinSCP was able to detect that it's a Windows server, OpenSSH's SFTP protocol implementation does not allow setting Windows ACLs. You have to do it manually. Moreover as mentioned there, for Administrator accounts, the path to [m]authorized_keys[m] is non-standard.
https://winscp.net/eng/docs/guide_windows_openssh_server#key_authentication
The WinSCP's Install Public Key into Server feature assumes Linux server and (tries to) sets Linux permissions. What has no effect on Windows server. Even if WinSCP was able to detect that it's a Windows server, OpenSSH's SFTP protocol implementation does not allow setting Windows ACLs. You have to do it manually. Moreover as mentioned there, for Administrator accounts, the path to [m]authorized_keys[m] is non-standard.