open-remote-ssh icon indicating copy to clipboard operation
open-remote-ssh copied to clipboard

open remote ssh ignores ssh configuration, ask for password and does not reuse existing session

Open sysdbugfactory opened this issue 2 years ago • 6 comments

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.

sysdbugfactory avatar Mar 25 '23 15:03 sysdbugfactory

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

jeanp413 avatar Mar 26 '23 05:03 jeanp413

Would also like to see this corrected/improved.

jamincollins avatar Mar 31 '23 19:03 jamincollins

What would be needed to get open-remote-ssh to work with the native binary?

lex-ibm avatar Jun 08 '23 20:06 lex-ibm

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

jeanp413 avatar Jun 09 '23 17:06 jeanp413

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.

lex-ibm avatar Jun 22 '23 15:06 lex-ibm

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.

akiekintveld avatar Jul 11 '23 18:07 akiekintveld