open-remote-ssh
open-remote-ssh copied to clipboard
open remote ssh ignores ssh configuration, ask for password and does not reuse existing session
I have ControlMaster and ControlPath options properly set up in my ssh config to prevent ssh asking password when a connection is already established.
open remote ssh ignores this setting and ask for password anyway which is annoying.
yes, this will be supported when I migrate to use the native ssh binary, like the official MS extension, right now I'm using a node library because it was easier to get started but all this missing features need to be implemented manually
Would also like to see this corrected/improved.
What would be needed to get open-remote-ssh to work with the native binary?
Basically:
- launch ssh binary with proper flags, options
- parse the output from the ssh process and wire it with vscode ui when prompt message is present to user, prompt output is stable across versions as far as I know, support for openssh only
I want to contribute to this effort but, shouldn't we have an EPIC for this feature and maybe also a development branch? Although this has the potential to fix a lot of the currently open issues, it also has the potential for breakage, and maybe this could be divided into multiple smaller issues that could take contribution.
I noticed that the remote extension host seems to be running without SSH_AUTH_SOCK set correctly, even though I have remote.SSH.enableAgentForwarding enabled. The variable seems to be set correctly in integrated terminal shells, but not for extensions. For me, this manifests as failures to pull or sign commits in the Git extension because it can't connect to my local SSH agent.
Based on the above, I'm guessing I'm running into this same issue? It seems to work okay using the same settings with the official Microsoft extension.