vscode ssh trouble on windows

first time posting so hopefully this is the right place. I'm trying to connect vscode to my server host because I'm fed up with using the cpanel editor (🤢 I know it's been too long). But I keep getting resolve issues where it can't find the private key. I can connect perfectly fine with putty, so I know the keys are working. Openssh and putty are both active. The file name/path are correct (unless I've lost my mind) under IdentityFile, and HostName, User, and Port are also defined (and confirmed as correct with normal ssh). And I have this problem with 2 separate web hosts (both using cpanel), so it's something to do with my setup. Anyone know about this issue?
4 Replies
ἔρως
ἔρως14mo ago
maybe the ssh implementation uses a different key format? putty uses the openssh format wait, no, it uses it's own format, sorry
ἔρως
ἔρως14mo ago
https://code.visualstudio.com/docs/remote/ssh-tutorial#_prerequisites
Install an OpenSSH compatible SSH client (PuTTY is not supported).
Connect over SSH with Visual Studio Code
Connect over SSH with Visual Studio Code
kat schrodinger
kat schrodingerOP14mo ago
I'm now trying with the openssh server, but I'm getting the same problem. Is the linux VM absolutely necessary? I assumed it just made things easier as the other ssh tutorials I found didn't mention it. Console info because why not:
> [path that I copied directly]
> Error connecting to agent: No such file or directory
> [redacted]
> ]0;C:\Windows\System32\cmd.exe
[12:11:51.174] ssh-add failed
[12:11:51.174] Consider setting up the ssh agent: https://aka.ms/vscode-remote/troubleshooting#_setting-up-the-ssh-agent
[12:11:52.425] "add-ssh-key" terminal command done
[12:11:52.425] Install terminal quit with output: jailshell: powershell: command not found
[12:11:52.425] Received install output: jailshell: powershell: command not found
[12:11:52.426] Failed to parse remote port from server output
[12:11:52.427] Resolver error: Error:
at g.Create [more redacted paths]
> [path that I copied directly]
> Error connecting to agent: No such file or directory
> [redacted]
> ]0;C:\Windows\System32\cmd.exe
[12:11:51.174] ssh-add failed
[12:11:51.174] Consider setting up the ssh agent: https://aka.ms/vscode-remote/troubleshooting#_setting-up-the-ssh-agent
[12:11:52.425] "add-ssh-key" terminal command done
[12:11:52.425] Install terminal quit with output: jailshell: powershell: command not found
[12:11:52.425] Received install output: jailshell: powershell: command not found
[12:11:52.426] Failed to parse remote port from server output
[12:11:52.427] Resolver error: Error:
at g.Create [more redacted paths]
I'm gonna trying setting up azure. hopefully this works 🤞
ἔρως
ἔρως14mo ago
🤔 i would start all over
Want results from more Discord servers?
Add your server