Skip to content

ProxyJump doesn't use modified Config.default_files #587

@rosenfeld

Description

@rosenfeld

Hi, once I was able to use the ProxyJump local configuration in project/.ssh/config, but today I tried using this project again (through sshkit) and was getting this error: "#497".

It works if I run "ssh -F .ssh/config somehost". There's something like this in the configuration:

Host proxied
  Hostname 10.0.0.1
  ProxyJump root@100.100.100.100:22
  # this works, but it would be good to get the above working too:
  #ProxyCommand ssh -i /project/sshkeys/id_rsa -W %h:%p -p 22 root@100.100.100.100

Host *
  User root
  IdentityFile /project/sshkeys/id_rsa

It looks like the identity file wasn't being to both hosts. By the way, both 100.100.100.100 and 10.0.0.1 would be the same host. This may not make much sense but it simplifies some settings in our deployment scripts. Is there something wrong with the configuration above? I used to have it this way by the time the support for ProxyJump was introduced to net-ssh, but maybe something has changed since then.

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