Skip to content

ProxyCommand SSH config not working #34

Closed

Description

  • VSCode Version: 1.34.0 (insiders)
  • Local OS Version: Windows 10 (1809)
  • Remote OS Version: CentOS Linux 7 (Core)
  • Remote Extension/Connection Type: SSH

I'm trying to connect to hostB (that's not the real host name, of course), however, it's only accessible after connecting to hostA. To accomplish this, I created the following SSH config file:

Host hostA
    HostName hostA.location.edu
    User bryan
Host hostB
    ProxyCommand ssh hostA.location.edu -W %h:%p
    HostName hostB.location.edu
    User bryan

Executing ssh hostB in my local terminal successfully connects to hostB (localhost -> hostA -> hostB), however, connecting to hostB via the remote-ssh extension yields the following error:

image

Steps to Reproduce:

  1. Create a SSH config file following the localhost -> hostA -> hostB paradigm.
  2. ssh hostB via the terminal and observe the jump working properly.
  3. Connect to hostB via remote-ssh in vscode and observe the error shown above.

Activity

  1. added
    ssh
    on May 3, 2019
  2. tralston commented on May 3, 2019

    @tralston

    Same problem here. Although it ran fine on my Mac, same config file.

  3. Stephen9s commented on May 3, 2019

    @Stephen9s

    This is the same issue that I reported in #18

  4. bryanhitc commented on May 3, 2019

    @bryanhitc
    Author

    @TheStoof Oops, you're right! I'll close this issue so we can continue the conversation at #18.

  5. locked and limited conversation to collaborators on Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ssh

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions