Skip to content

feat(ssh): introduce new proxyCommand property#275

Open
fdelbrayelle wants to merge 1 commit intomainfrom
issues/195
Open

feat(ssh): introduce new proxyCommand property#275
fdelbrayelle wants to merge 1 commit intomainfrom
issues/195

Conversation

@fdelbrayelle
Copy link
Member

@fdelbrayelle fdelbrayelle commented Feb 13, 2026

closes #195

What changes are being made and why?


How the changes have been QAed?

Non regression

Flow:

id: ssh_command_no_proxy_non_regression
namespace: company.team

tasks:
  - id: run_direct_ssh
    type: io.kestra.plugin.fs.ssh.Command
    host: localhost
    port: "2222"
    username: foo
    authMethod: PASSWORD
    password: "{{ secret('SSH_PASSWORD') }}"
    commands:
      - echo "hello direct ssh"
      - whoami
      - echo '::{\"outputs\":{\"mode\":\"direct\"}}::'

Results:

image

Flow with a proxyCommand

Flow:

id: ssh_proxy_command_smoke
namespace: company.team

tasks:
  - id: run_via_proxy
    type: io.kestra.plugin.fs.ssh.Command
    host: unreachable.invalid
    port: "2222"
    username: foo
    authMethod: PASSWORD
    password: "{{ secret('SSH_PASSWORD') }}"
    proxyCommand: "nc 127.0.0.1 2222"
    commands:
      - echo "hello via proxy"
      - whoami
      - echo '::{\"outputs\":{\"proxy\":\"ok\"}}::

Results:

image

Removing the proxyCommand makes the execution fails as expected too. Flow:

id: ssh_proxy_command_smoke
namespace: company.team

tasks:
  - id: run_via_proxy
    type: io.kestra.plugin.fs.ssh.Command
    host: unreachable.invalid
    port: "2222"
    username: foo
    authMethod: PASSWORD
    password: "{{ secret('SSH_PASSWORD') }}"
    commands:
      - echo "hello via proxy"
      - whoami
      - echo '::{\"outputs\":{\"proxy\":\"ok\"}}::

Results:

image

This proves proxy routing.


Setup Instructions


Contributor Checklist ✅

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

📦 Artifacts

Name Size Updated Expiration
jar 10.5 MB Feb 13, 26, 3:15:49 PM UTC Feb 20, 26, 3:15:49 PM UTC

🧪 Java Unit Tests

TestsPassed ✅SkippedFailedTime ⏱
Java Tests Report113 ran113 ✅0 ⚠️0 ❌1m 23s 805ms

🔁 Unreleased Commits

2 commits since v2.0.2

SHA Title Author Date
4e85858 chore(deps): update to gradle 9.3.1 Ludovic DEHON Feb 3, 26, 12:49:07 PM UTC
f4a30aa docs(fs): update descriptions AJ Emerich Feb 10, 26, 3:06:26 PM UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To review

Development

Successfully merging this pull request may close these issues.

Add proxy command to ssh plugin

1 participant