This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run commands in PowerShell as admin | |
# Remove default ssh components (restart is needed afterwards) | |
# Do not run this on a production server if OpenSSH is already in use there | |
Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 | |
Remove-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 | |
# Install fresh openssh server with Chocolatey | |
choco install openssh -params '"/SSHServerFeature /KeyBasedAuthenticationFeature /SSHAgentFeature"' -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logging { | |
level = "info" | |
} | |
discovery.http "path_targets" { | |
url = "target_url_to_get_log_paths" | |
} | |
discovery.relabel "paths" { | |
targets = discovery.http.path_targets.targets |