samuel-sabik
samuel-sabik
This is relevant portion of my install script. I'm not doing any changes to default configuration. ``` #Download and install $url = "https://github.com/PowerShell/Win32-OpenSSH/releases/download/v8.1.0.0p1-Beta/OpenSSH-Win64.zip" $zipfile = "C:\winssh.zip" $outpath = "C:\Program Files"...
Sorry, i wasn't clear. I appended deny directive, eg DenyUsers testuser?ad.contoso.com, restarted sshd service and tried to login. Unfortunately it was successful.
Like i said in the original post, i've tried every format i could think of. [email protected], ad.contoso.com\testuser, ad.contoso.com?testuser.
Thanks. I'l try and will report later.
Problem solved by two hashes. There is an [Match block](https://github.com/PowerShell/openssh-portable/blob/latestw_all/contrib/win32/openssh/sshd_config#L87) at the end of the default sshd_config that effectively invalidates anything appended to the end of file.