-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH from VScode doesn't work but from terminal SSH works fine. #6316 #6348
Comments
Which version of VS Code are you using? |
I also have problem with VS Code via SSH. Yesterday everything worked fine
When I try to connect, I see: 'Installing VS Code server' and it ends with an error. Output
|
source machine windows 11Version: 1.64.2 (user setup) |
I encountered same issue as well.
|
@kochargs do you have admin permissions on the account you're SSH connecting to? Unfortunately we have the long standing issue of not being able to connect to non-admin Windows accounts which you had linked #2648 @vsheg and @shiltian your issues are different from @kochargs. Would both of you mind creating a separate issue? @vsheg based on some of your logs it looks like you guys have an incomplete download that you're trying to unzip. Could you post the full log on your issue? @shiltian what is the default shell of your remote? What happens if you set it to bash before connecting? |
@tanhakabir Thanks for the info. I created #6351 as well. My default shell is |
@tanhakabir |
@kochargs I'm not sure why it was working before but we need admin permissions because our set up script needs to run this: |
@tanhakabir PS C:\Users\80874133> (gcim win32_process | ? processid -eq $PID).parentprocessid but I am still unable to connect via VSCode. Does it matter what my default shell on my remote windows machine is? |
@kochargs how are you running Not sure how else to help since VS Code is just unable to run this necessary command to connect. As seen in your first logs:
|
This is interesting. So if I SSH to the remote windows and then execute, it fails with this PS C:\Users\80874133\Box\Network Automation> (gcim win32_process | ? processid -eq $PID).parentprocessid
However I log in to the remote machine and run it from its Powershell, it works PS C:\Users\80874133\Box\Network Automation> (gcim win32_process | ? processid -eq $PID).parentprocessid What does this indicate about the problem? Thanks |
@kochargs I'm not fully sure but what I'm understanding is when you manually log into the remote machine the Powershell shell you're using seems to have admin permissions. But that same level of permission isn't given to SSH connections. Are you using Powershell Administer? |
I am using the default PowerShell that comes installed with windows. |
@kochargs I'm sorry I don't know more than that of what could be different now in your setup but until you can ssh into your windows machine and run that line of code, the VS Code extension can't work. We need admin permissions to run that line and historically we've seen issues with Windows accounts that aren't the admin accounts. Sorry we don't know more here :/ |
No problem. Since this remote machine is an organization-owned machine, I will now go and talk to the IT team to hopefully elevate some access level if they can. |
I was able to SSH remote windows 10 machine but all of a sudden, I am not able to do it anymore.
I can confirm nothing has changed, no update has been done
Source machine is windows 11 and target machine is windows 10
This setup has been working for me for a few days but now all of a sudden, it stopped.
When I SSH to windows 10 ( target ) from pwsh on windows 11 ( source machine )... That SSH connection works absolutely fine but VScode fails everytime.
Here is the trace that i get...
I looks duplicate of #2648 but that, unfortunately, hasn't helped me much.... I am out of options and it is important for this to work for me.
Thank you.
The text was updated successfully, but these errors were encountered: