Skip to content

SFTP connect don't use correctly ProxyJump in .ssh/config #3814

Description

@devingfx

Distribution

Mint 22.3

Package version

6.6.3

Frequency

Always

Bug description

When typing sftp://<alias> in explorer bar, and that alias being a ~/.ssh/config entry with a ProxyJump field, the username used in always the same as the proxy one despite having a different configuration for final host's User.
You are prompted for proxy's password with proxy's User, then prompted for final host's password with proxy's User.

Steps to reproduce

  1. Setup ~/.ssh/config to have 2 hosts with 2 different User field, one proxying the other, exemple:
Host h1
  HostName foo
  User u1
Host h2
  HostName bar
  User u2
  ProxyJump h1 # or u1@foo
  1. Validate your conf in cli with sftp h2
  2. Type sftp://h2 in nemo's address bar, hit Enter
  3. A prompt dialog ask for h1's User's password on h1's Host, type it in
  4. A 2nd prompt ask for h1's User's password on h2's Host, instead of h2's User's password

Expected behavior

Expect each hop's step to use each Host's User in config.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions