Skip to content

SSH config (ssh.user, ssh.port) from deploy.yml not propagated to SshPool #2672

@zainforbjs

Description

@zainforbjs

Describe the bug
Every deploy CLI class creates new SshPool() with no arguments, causing the pool to use hardcoded defaults (user: root, port: 22, no private key). The ssh: block values from deploy.yml (e.g., ssh.user: admin) are loaded by ConfigLoader but never passed to the SshPool. The pool always connects as root@host regardless of the config.

To Reproduce
Steps to reproduce the behavior:

  1. Create config/deploy.yml with:
ssh:
  user: admin
servers:
  web:
    - 192.168.1.1
  1. Run wheels deploy --dry-run — note no model@ prefix on commands
  2. The deploy attempts SSH as root@192.168.1.1 and fails if root key auth isn't set up

Expected behavior
The ssh.user and ssh.port values from deploy.yml should be propagated to the SshPool so connections use the configured user. The admin@host workaround in the servers list should not be necessary.

Desktop:

  • OS: macOS
  • version: Wheels 4.0.0 (development)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions