Skip to content

Instantly share code, notes, and snippets.

View aruaam's full-sized avatar

Alexey Semyonov aruaam

  • Takeprofit Technology
View GitHub Profile
@aruaam
aruaam / Configure_SSH_On_Windows.txt
Last active October 28, 2023 10:37
How to configure passwordless SSH access to a Windows host
# 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
@aruaam
aruaam / config.river
Last active October 28, 2023 10:38
How to configure the Grafana Flow agent on a Windows host with remote path storage
logging {
level = "info"
}
discovery.http "path_targets" {
url = "target_url_to_get_log_paths"
}
discovery.relabel "paths" {
targets = discovery.http.path_targets.targets