8.4. Preparing Hosts and Security

Retrospective reads log files and event logs from the machines you define as hosts. This page describes what each machine needs before it can be read. It also answers the questions a security team asks. You do not need this page to use the product day to day.

8.4.1. What Retrospective Does on a Machine

Retrospective installs no agent, no service and no scripts. It never writes to the machines it reads from. It only runs read-only commands that are part of the operating system already:

  • On Linux, and on a best-effort basis on other Unix systems, it opens an SSH session and uses standard tools such as awk, grep, sed, tail, dd and ps. Which ones it found, and which are missing, is reported by Host Compatibility Information.

  • On Windows it runs a PowerShell script that queries the event log. The script uses the Windows PowerShell built into Windows; PowerShell 7 does not have to be installed on the machine being read. Installing it is optional and speeds up the Security log for SSH hosts that opt in; see Choosing How Retrospective Connects.

Everything runs under the account you configure in the host definition, with that account’s permissions and nothing more. That account is the real limit on what Retrospective can reach, which is why the smallest account that works is the one to give it. The credentials for it are stored encrypted on your own computer — see Security.

8.4.2. Preparing a Linux or Unix Host

A Linux or Unix host needs very little:

  • an SSH login for the account you configure;

  • read permission on the log files themselves — or an identity change if they belong to another user;

  • the standard tools listed under Host Compatibility Information, which are part of a normal installation.

Press Test in the Host Manager. The Host compatibility information table tells you whether anything is missing.

8.4.3. Hosts You Cannot Change

Switches, routers, NAS firmware, industrial controllers and minimal containers carry a reduced set of shell tools, and you usually cannot add to it. Retrospective is built to read such machines. Where a standard tool is missing, it stands in with another one: cksum through md5sum, ps through the /proc file system.

On a host you do not administer, read the compatibility report as an inventory of what this machine can do, not as a list of things to install. Read it once, note the capabilities you lose, and keep that note with the host definition. The list stays the same until the firmware changes.

An error is the one entry that is not an inventory item. It names something Retrospective cannot work around, and the host stays unusable until the tool is there. Host Compatibility Information explains what each message costs you.

8.4.4. Preparing a Windows Machine for SSH

This is the path that works from any computer, and the one to choose when in doubt. Three things have to be true on the Windows machine:

  • its OpenSSH Server is installed and running,

  • an account exists that is allowed to read the event logs,

  • port 22 is reachable from your computer.

OpenSSH Server is part of Windows. On Windows Server 2025 it is installed by default and only has to be started. On Windows Server 2019/2022 and on Windows 10/11 it is an optional feature that has to be added first. Run once, in an elevated PowerShell on that machine:

# 1 - install (if not already present) and start the OpenSSH Server
$capability = Get-WindowsCapability -Online | Where-Object { $_.Name -like 'OpenSSH.Server*' }
if ($capability.State -ne 'Installed') { Add-WindowsCapability -Online -Name $capability.Name }
Set-Service sshd -StartupType Automatic
Start-Service sshd

# 2 - allow inbound SSH (the feature usually adds this rule itself)
New-NetFirewallRule -Name 'OpenSSH-Server-In-TCP' -DisplayName 'OpenSSH Server (sshd)' `
    -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22

# 3 - an ordinary account that may read the event logs
New-LocalUser -Name retroreader -Description 'Retrospective log reader'
Add-LocalGroupMember -Group 'Event Log Readers' -Member retroreader

# 4 - Windows Server 2025 only: sshd there admits Administrators and
#     'OpenSSH Users' only, so an ordinary account needs this membership
if (Get-LocalGroup -Name 'OpenSSH Users' -ErrorAction SilentlyContinue) {
    Add-LocalGroupMember -Group 'OpenSSH Users' -Member retroreader
}

Note

Step 4 is easy to miss and its symptom is misleading. On Windows Server 2025 the shipped SSH configuration only lets members of Administrators or OpenSSH Users log in. A correctly created reader account is therefore refused at sign-in, before permissions on the event log are ever consulted. Earlier Windows versions have no such restriction and the group does not exist there, which is why the check above is conditional.

That is enough for Password authentication. To use an SSH key instead, append your public key to that account’s authorized_keys file:

# run as the retroreader account
$sshDir = "$env:USERPROFILE\.ssh"
New-Item -ItemType Directory -Force -Path $sshDir | Out-Null
Add-Content "$sshDir\authorized_keys" 'ssh-ed25519 AAAA... you@your-computer'

Warning

Use an ordinary account, not an administrator. Windows deliberately ignores authorized_keys in an administrator’s profile. It reads a single shared %ProgramData%\ssh\administrators_authorized_keys file instead, which additionally has to carry very specific permissions. Key authentication that silently refuses to work for an administrator account is almost always this. An ordinary account has neither problem, and reading event logs needs no administrator rights anyway.

Nothing else is required. In particular there is no need to install PowerShell 7 on the machine, and no need to edit sshd_config to add a PowerShell subsystem. Earlier versions of Retrospective asked for both. Installing PowerShell 7 is optional and speeds up the Security log for hosts that opt in; see Choosing How Retrospective Connects.

8.4.5. Preparing a Windows Machine for WinRM

WinRM is worth using in one situation: your computer runs Windows and the target is a domain-joined Windows Server. There it is usually enabled already, so there is often nothing to prepare. Kerberos SSO then signs you in with your own Windows account, and no password is stored.

On Windows 10/11, and on machines where remoting was turned off, enable it and grant the account access:

Enable-PSRemoting -Force
Add-LocalGroupMember -Group 'Remote Management Users' -Member retroreader
Add-LocalGroupMember -Group 'Event Log Readers'       -Member retroreader

Note the extra group: WinRM consults Remote Management Users to decide whether the account may connect at all, before the event log’s own permissions are considered.

To use Use HTTPS (SSL) the machine additionally needs an HTTPS listener on port 5986. Its certificate has to match the host name you type into Retrospective, and your computer has to trust the issuer.

Note

For a machine that is not in a domain, prefer SSH with a key. WinRM outside a domain falls back to an older authentication mechanism that Microsoft is switching off. Making it work requires changes that weaken the machine’s defenses, and an SSH key needs none of that.

8.4.6. Permissions: The Smallest Account That Works

A plain account that is a member of the built-in Event Log Readers group can read every event log, including the Security log. It needs no administrator rights, and it does not need the Manage auditing and security log privilege. That privilege governs clearing the Security log rather than reading it, and granting it hands out far more than Retrospective needs.

When the account may not read the Security log, a search reports access denied (the connecting account may not read this log) and returns no events. This warning appears for every connection method, and a monitor stops with it. On a log that lives on the computer Retrospective itself runs on, the same refusal reads access denied (run as administrator) instead: there, and only there, elevating the program is what grants the log.

A folder, a wildcard or a list of several logs that includes the Security log still reads its other logs. The warning then appears once, for the Security log alone, and the Event Log Browser shows that log as not readable. Retrospective checks this when it lists the host’s logs. After the account’s rights change, click i-refresh Reload in the Event Log Browser, or restart Retrospective.

If reading the Security log is refused anyway, a hardening policy has probably replaced that log’s permissions. Inspect them with

wevtutil gl Security

and look for an entry granting read access to S-1-5-32-573 — the Event Log Readers group.

8.4.7. Encryption

For SSH connections Retrospective speaks SSH2 through a maintained fork of the pure-Java JSch library, backed by BouncyCastle for modern cryptographic primitives. Retrospective does not pin or restrict the algorithms itself. The defaults below are the ones the bundled library proposes. The strongest suite both ends support is negotiated for each connection.

Purpose

Algorithm families

Key exchange

Curve25519, ECDH over the NIST P-256/384/521 curves, Diffie-Hellman group 14/16/18 with SHA-2, Diffie-Hellman group exchange with SHA-256, and a post-quantum hybrid (mlkem768x25519)

Ciphers

AES in GCM and CTR mode, 128 to 256 bit

Integrity

HMAC with SHA-2, encrypt-then-MAC variants preferred. Two SHA-1 HMACs are still proposed, last in the list: hmac-sha1-etm@openssh.com and hmac-sha1

Host and user keys

Ed25519, ECDSA, and RSA with SHA-2 signatures

Long-deprecated algorithms are no longer offered at all: blowfish-cbc, arcfour*, 3des-cbc, hmac-md5, ssh-dss and diffie-hellman-group1-sha1. The exact identifiers available for a given connection are those of the bundled library. They may gain new entries as it is updated; the families above are the guarantee.

WinRM connections are secured by Windows itself — by the authentication layer over HTTP, or by TLS when Use HTTPS (SSL) is selected.

8.4.8. Server Identity

Encryption protects the connection. It does not tell you which machine is at the other end of it. The server’s host key does that, and Retrospective checks it on every SSH connection, including each hop of a jump-server chain.

The first time Retrospective reaches a host it has nothing to compare against, so it asks you.

Answer

What happens

Trust and remember

The key is stored. The host connects without asking again.

Trust once

The key is accepted for the rest of this Retrospective session and is not stored. The next start asks again. If the host presents a different key of the same type later in the session, the connection is refused as for a stored key.

Cancel

The connection is refused. Cancel is the preselected answer, so pressing Enter never grants trust by accident.

The dialog names the key algorithm and shows two fingerprints, SHA-256 and MD5. Compare one of them against a fingerprint from a source you trust: your own records, or the output of ssh-keygen -l -f against the host key on the machine itself. A fingerprint read off the connection you are verifying proves nothing.

Keys you keep are written to known_hosts in the version folder of the Retrospective home directory (see Changing Configuration Location). Host names in that file are hashed, so the file does not disclose which machines you reach. Only your own account can read it.

Retrospective also reads known_hosts and known_hosts2 in your ~/.ssh directory. A host your own ssh command already trusts therefore connects without a further question. Those two files are only ever read, never written. Clear Trust hosts from the SSH known_hosts file on the Security preferences page to ignore them. That is the right choice on a shared workstation where the files may not be yours.

Warning

When a host presents a key that differs from the stored one, Retrospective refuses the connection and offers no way to continue. The Host key changed dialog shows the stored and the presented SHA-256 fingerprints and closes with Close. That is what an attempt to intercept your connection looks like. It is also what a reinstalled host looks like, and Retrospective cannot tell the two apart.

Confirm through another channel that the host really changed. The dialog then tells you where the old key is kept, and so how to remove it:

  • Retrospective stored it, or you trusted it once in this session. Open the Host Manager, select the host, and press Remove stored key. The next connection asks about the new key. For a host you have not saved yet, add it in the Host Manager and press Test first; the button appears after the test.

  • It comes from your own ~/.ssh/known_hosts or ~/.ssh/known_hosts2. The dialog names the file. Delete the host’s line from it, for example with ssh-keygen -R <host>, which finds the line even where host names are hashed. Alternatively, switch off Trust hosts from the SSH known_hosts file on the Security preferences page.

Retrospective notices an edit to any of these files on the next connection; no restart is needed.

Keys you keep travel with an exported configuration, so colleagues you share one with reach the same hosts without a first-contact question of their own. See Host Keys in an Exported File.

Each of these decisions is recorded in the audit log described under The Audit Log. It records a key trusted, a key trusted for one session, a connection refused, a stored key removed, and a key taken on from an imported configuration or in conflict with one.

8.4.9. What Your Security Tooling Sees

Windows PowerShell records the script blocks it is asked to run in the Microsoft-Windows-PowerShell/Operational log. The queries Retrospective sends therefore appear there. Endpoint-protection products sometimes flag their shape — a script arriving over a remote session and being executed. Nothing about the queries is harmful: they read event logs and write nothing.

If the machines you read from are monitored, tell whoever watches those alerts before you start.

8.4.10. Troubleshooting

What you see

What it means, and what to do

WinRM remoting to ‘<host>’ works only from a Windows client…

You are on macOS or Linux. Open the host in the Host Manager: the editor shows it with the SSH transport. Check the port and the credentials, then save.

A certificate error mentioning the Trusted Root store or a name mismatch

The HTTPS listener’s certificate is not trusted by your computer, or it was issued for a different name than the one you typed. Install the issuing authority’s certificate, correct the host name, or clear Use HTTPS (SSL).

Get-WinEvent probe failed: …

The query did not complete. Over WinRM this includes failures to connect or to sign in. The rest of the message is PowerShell’s own explanation. Most often the account lacks permission on the log; see the permissions section above.

PowerShell not found or could not be launched…

Applies to localhost and WinRM hosts, which run PowerShell on your computer. Neither PowerShell 7 nor a built-in Windows PowerShell could be started. On Windows this normally points at a wrong entry in File ‣ Preferences ‣ Data Sources ‣ Windows Event Log. Correct it there, or install PowerShell 7. Hosts using the SSH transport do not need it.

Connection failed: … with a network or authentication reason

The SSH connection was not established: sshd is not running, the SSH port (22 by default) is blocked, or the credentials are wrong. Two traps are worth checking before anything else. On Windows Server 2025 the account must be in the OpenSSH Users group, and key authentication behaves differently for administrator accounts. Both are covered above.

The host key has changed

The key the host presented is not the one stored for it, so the connection is refused and cannot be continued. Confirm through another channel that the host was reinstalled, then remove its stored key as described under Server Identity.

The host key was not accepted

The question about an unknown host was answered with Cancel, or Retrospective had no way to ask it. Press Test in the Host Manager to answer it, which is also how you trust a host before a search needs it.

<name> - access denied. The account this host connects with may not read this log… (a remote host) / <name> - access denied. … To view this item, the program must be run as administrator. (this computer)

The account may connect but may not read this particular log. Add it to Event Log Readers, and check the log’s own permissions if it is already a member.

WinRM does not support key authentication… or Kerberos SSO requires the WinRM transport…

The stored host definition pairs a transport with an authentication method it cannot use. Open the host and pick a valid combination — the editor offers only the methods each transport supports.

…no free PowerShell process for host … is available.

Too many event-log activities are running against that machine at once. Stop some, or raise Event Logs (PowerShells) on the host’s Advanced tab in the Host Manager. That setting governs a remote host. For localhost the limit lives in File ‣ Preferences ‣ Search/Monitor ‣ System Resources instead.

Detection stopped before it finished…

The host broke off the compatibility check. On a small device this is usually a restart under memory pressure. Press Test again, and if it repeats, read fewer or smaller files at a time.

This host restarts when its memory runs out…

The host is configured to reboot rather than to end a single process when memory runs out. A search over many or large files can restart it. Keep such searches small.

… Retrospective cannot search or monitor this host, for example awk is not available… or grep is not available…

A required tool is missing. These tools belong to a normal installation, so install the missing one. On an appliance you cannot change, see Hosts You Cannot Change.

sudo is not available…

Identity Change cannot run, so Retrospective reads only what the login account may read itself. Install the tool, or give the login account read permission on the logs.

No sftp-server found, so with sudo the file browser lists directories through the shell…

Nothing to do. With Identity Change, the File Browser lists directories through the shell. Searching and monitoring work as usual.