Skip to content

Remove StrictHostKeyChecking=no from remote SSH collection #12

Closed

Description

@OkiriGabriel

Problem

Remote server collection disables SSH host key verification, enabling man-in-the-middle attacks.

Current state

In collectors/server.py:

cmd = f"ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 {host} '{cmd}'"

Same pattern exists in tools/executor.py. .env.example mentions SSH_REMOTE_USER but it is not used.

Acceptance criteria

  • Default to strict host key checking; support SSH_KNOWN_HOSTS or SSH_REMOTE_USER@host format
  • Document SSH key mounting in .env.example / deployment docs
  • Add test asserting SSH options do not include StrictHostKeyChecking=no by default

Files

  • collectors/server.py, tools/executor.py, .env.example, docs/CENTRALIZED_DEPLOYMENT.md

Activity

  1. added
    bug
    security
    on Jul 16, 2026
  2. added a commit that references this issue on Jul 16, 2026
    9dc8978
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions