Skip to content

Allow to define SSH connection options #1301

@yajo

Description

@yajo

Description

The new ssh connection introduced in #1014 does not allow to define many SSH options that are sometimes needed.

It indeed supports ~/.ssh/config, but what about portability?

Possible solutions that come to my mind:

  • Allow to specify the SSH command itself, with all but the host, user and port.
  • Allow to specify a custom config file (e.g. ssh -F /tmp/other_config) that can be filled by a script previously.
  • Allow to specify SSH options (e.g. docker -H ssh://example.com -o ForwardAgent=yes -o 'ProxyCommand=/usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p ' container ls)

Current workaround would be for a script to override current $PATH and prepend a different ssh binary that proxies to the original one. But that's hacky!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions