-
Notifications
You must be signed in to change notification settings - Fork 572
EC2 Remote from Windows : ec2_connect.ps1 missing #6248
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
Comments
Connecting from Windows is not yet implemented. We plan to follow up on this. |
Thanks! So I should not expect being able to connect from WSL on Windows to a remote EC2 either? The error is different, but I'm leaving it here:
despite the Remote SSH extension being installed (v 0.116.0). |
If you started vscode from WSL and are running the WSL (Linux) version of vscode, it should work. If you are connecting to WSL from Windows, then that is a "remote" situation which isn't currently supported (it would require remote-ssh in the remote (WSL) vscode instance, plus AWS Toolkit would need to understand this and invoke vscode in the correct way, which currently is not supported).
Is it installed in the remote WSL environment (not your local desktop vscode code)? |
Yes, from WSL, running
Indeed, no. VSCode is installed on Windows, with the remote extension, which I understand is not supported at the moment. Feel free to close this issue as this is unsupported for now. |
Ok. Are there any plans to implement it? Is there much more work to be done aparat from translating the bash version of the 'ec2_connect' scritp to powershell? |
That's pretty much it :) Patch welcome! |
I think there might be little more to it than that. I translated the shell script to ps1 using copilot, but that's not enough, and having little experience with this toolkit, I can't quickly fix it. Pretty please, provide a fix, if that's not a big problem on your side. |
@guteksan if its not too much effort, can you drop what you have thus far? gonna give this a shot later |
here is the ai generated version i am working on testing
|
some updates:
|
Before connecting, AWS Toolkit tries a test command to ensure that things will actually work:
That is failing from a |
I would also be interested in seeing a working Windows solution. |
updates:
|
Thanks @nathanlisabio, I've made the local changes to add in the new file (packages/core/resources/ec2_connect.ps1) but where do I need to make the packages/core/src/shared/sshConfig.ts changes locally? |
if you're asking about the location/path to change the what i've been doing is running debug mode via vsCode on the aws toolkit project, which installs the extension using my local repo into a spawned vsCode. the exact changes i applied are basically what's shown in the draft PR (changing from |
additional debugging for pwsh v5:
|
@nathanlisabio Thanks for the info, I managed to track it down and change the file locally and also have it working! |
We're certainly open to changing
pwsh , and use the first one that succeeds.
|
@justinmk3 If this change can be added that would be great! |
@justinmk3 |
updates on not being able to work with amazon-linux here: #6802 (comment) |
Problem
When trying the new experimental feature to "connect to EC2 instance in a new Remote window" from Windows, the script
ec2_connect.ps1
is missing.Logs :
Steps to reproduce the issue
Expected behavior
I should be able to open a new VSCode window, connected to this remote EC2 through SSM.
System details (run
AWS: About
and/orAmazon Q: About
)The text was updated successfully, but these errors were encountered: