Skip to content

Commit

Permalink
Disable PasswordAuthentication on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptAutomate committed Sep 26, 2023
1 parent 660aa73 commit b4732c4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ LogLevel DEBUG3
'@
# Un-comment below for debug logs
#$SSHD_CONFIG_EXTRA | Out-File -Append -FilePath $SSHD_CONFIG -Encoding ASCII
"PasswordAuthentication no" | Out-File -Append -FilePath $SSHD_CONFIG -Encoding ASCII

# Ensure access control on administrators_authorized_keys meets the requirements
$OPENSSH_UTILS_MODULE = [io.path]::combine($INSTALL_DIR, 'OpenSSHUtils.psd1')
Expand Down

0 comments on commit b4732c4

Please sign in to comment.