microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.67k stars 291 forks source link

can't ssh from wsl into a remote vm, .pem key not found #7402

Closed rbavery closed 1 year ago

rbavery commented 2 years ago

my .pem key is on my wsl partition and the path is correct. but I think vscode, isntalled on windows, is looking for the .pem key on the windows partition.

IdentityFile /root/cerulean-ml/gcpvm/.ssh/private_instance_gcp.pem in my ssh config

and the error

[13:45:33.256] Install and start server if needed
[13:46:38.306] Checking ssh with "ssh -V"
[13:46:38.336] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
[13:46:38.336] > 

[13:46:38.340] Running script with connection command: ssh -T -D 64593 "icevision-Trainer" bash
[13:46:38.343] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[13:46:38.649] > ]0;C:\WINDOWS\System32\cmd.exe
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
[13:46:38.650] Got some output, clearing connection timeout
[13:46:39.836] > no such identity: /root/cerulean-ml/gcpvm/.ssh/private_instance_gc
> p.pem: No such file or directory
[13:46:39.849] > root@35.204.234.213: Permission denied (publickey).
eleanorjboyd commented 2 years ago

Hello! Does this work if you try and connect from your terminal? Also could you include the whole logs? These can be helpful in finding the root of the issue. Thanks!

github-actions[bot] commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!