Skip to content

Feature: SSH command filtering/proxying #1680

Closed as duplicate
Closed as duplicate

Description

@directorboint-arch

Summary

Add RTK support for ssh commands to filter remote output before it enters context.

Use case

When running remote diagnostics via SSH (e.g. ssh user@host "systemctl status ..."),
raw output can be large. RTK already handles local equivalents (rtk ps, rtk df, rtk docker)
— the same filtering should apply when those run over SSH.

Example

Current (unfiltered)

ssh [email protected] "systemctl status ollama && ollama ps && nvidia-smi"

Desired

rtk ssh ssh [email protected] "systemctl status ollama && ollama ps && nvidia-smi"

Privacy/security requirement

Output must be filtered LOCALLY — no credentials, hostnames, IPs, or command output
leave the local machine. RTK acts as a local stdout filter on the subprocess return,
identical to how it handles local commands today. No telemetry on remote host, command,
or content.

Behavior spec

  • rtk ssh spawns ssh as a subprocess (same as rtk ps spawns ps)
  • Stdout filtered/compressed locally before entering context
  • Falls back to raw output if filtering fails
  • Respects existing rtk output size limits

Context

Discovered via rtk discover — 4 SSH calls in one session producing unfiltered remote
service/GPU status. Local equivalents filter at 84–96% reduction; same savings expected.

Activity

  1. added
    enhancement
    help wanted
    on May 27, 2026
  2. pszymkowiak commented on May 27, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    ✨ Category feature
    🟡 Priority medium
    🎯 Confidence 72%

    Summary

    Feature request to add rtk ssh wrapper that locally filters SSH remote command output; likely overlaps with #2073 which explicitly lists SSH among commands needing RTK coverage — confirm scope before triaging further

    ♻️ Possible duplicate of #2073


    Triaged automatically by wshm · This is an automated analysis, not a human review.

  3. KuSh commented on Sep 5, 2026

    @KuSh
    Collaborator

    Closing as a duplicate of #333, which tracks the same problem with the more complete discussion. Please follow up there; if your case differs in a way that issue does not cover, comment here and it can be reopened.

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

    area:clienhancementhelp wantedpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions