SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
543 stars 36 forks source link

Problems with sshfs tasks and agent-forwarding #233

Closed wow-solution closed 3 years ago

wow-solution commented 3 years ago

Hi and thx for your great vscode extension!

My ssh-shell task gives me the following output after I run it: (I'm not sure if i have to put into host the IP or the hostname from sshfs.configs but tried both and neither worked.)

Error: The ssh-shell task detection didn't contribute a task for the following configuration:

{
    "label": "test",
    "type": "ssh-shell",
    "host": "xxx.xxx.xxx.xxx",
    "command": "echo: test",
    "problemMatcher": []
}
The task will be ignored.

The second problem is, that the agent forwarding don't work in the sshfs shell.

Permission denied (publickey,keyboard-interactive).

My ssh config I have this configuration and this works for the standard terminal and with the sftp extension terminal:

Host *
  ForwardAgent yes
  IdentityFile ~/.ssh/id_rsa

Best regards

Wolfgang Wagner

SchoofsKelvin commented 3 years ago

For the task, use the name of your configuration.

The extension currently doesn't support reading .ssh/config (see #107).

As for agent forwarding, there is a workaround (#93) for it:

That should in theory enable forwarding.