%WINDIR%System32OpenSSH
. Configuration file (sshd_config
) and host keys are installed to %ProgramData%ssh
(only after the server is started for the first time).OpenSSH-Win64.zip
or OpenSSH-Win32.zip
) C:Program FilesOpenSSH
C:System32OpenSSHsshd.exe
with the actual path to the sshd.exe
(C:Program FilesOpenSSHssh.exe
, had you followed the manual installation instructions above)..ssh
folder (for the authorized_keys
file) in your Windows account profile folder (typically in C:Usersusername.ssh
).2.ssh
folder and the authorized_keys
file, what matters are Windows ACL permissions, not simple *nix permissions. Set the ACL so that the respective Windows account is the owner of the folder and the file and is the only account that has a write access to them. The account that runs OpenSSH SSH Server service (typically SYSTEM
or sshd
) needs to have read access to the file.sshd_config
for accounts in Administrators
group. For these, the server uses a different location for the authorized keys file: %ALLUSERSPROFILE%sshadministrators_authorized_keys
(i.e. typically C:ProgramDatasshadministrators_authorized_keys
). ssh-keygen.exe
for each file.%WINDIR%System32
with %ProgramFiles%
, if appropriate.$env:WINDIRSystem32
with $env:ProgramFiles
, if appropriate.user@domain
if running on a domain..ssh.
, the trailing dot will allow you to bypass the restriction, but will not be included in the name.Back
|