-
Notifications
You must be signed in to change notification settings - Fork 313
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
Remote SSH fails to connect to remote server after VS Code update 1.37.0 #1137
Comments
Same issue here. Everything worked well before this update. Currently I have to downgrade to VS Code 1.36.1. ---- update Fixed by removing the parens |
I just tried it first time in VScode version 1.37. |
I have same problem here..and I have to downgrade to 1.36.1... |
after updating to 1.37.0 the Remote-SSH extension stopped > |
This is probably due to the () in your ssh host name. I will have to quote them. Can you try without the parens? |
I removed the (), and also the underscore, but that didn't fix it. |
Can you share the output after that? You might see a different error now. |
Here it is:
|
I had the same issue, it was fixed by removing the ()'s from the hostname in the ssh configuration |
This shows the line wrapping at 56 characters, @Tyriar?
|
I am also getting this issue, but I have no odd characters in my hostname. I'm trying to uninstall and re-install the Remote - SSH extension but I also get an 'unknown error' occur when I try. I have removed the directories on the remote host and it started to re-install but then continued to error. I closed everything, managed to uninstall all the remote ssh packages from vscode (insiders). I found that there were processes running on the remote host, so I killed all vscode related processes. Re-installed the plugin, reconnected and it seems to be working ok now. |
Are you on windows >= 1903 ? |
see #1152 |
@rafipiccolo I'm on |
I think this could happen if your window is particularly tiny and terminal is restored (there might be a race whether it happens or not). |
Same error here, on two different machines:
Unchecking conpty did not help. Connecting to another remote vm works. |
I had this working previously, but am in the same boat. My challenge is it's been a bit so don't know if this is due to a change in VSCode, some update to OpenSSH, or what. I originally followed the setup steps, creating SSH keys, putting them on the remote servers, and modifying my SSH config with the necessary info as the servers I connect to have SSH on a non-standard port. And it all worked great. But when this started happening, I eventually went online looking for help, and found this. In my case, from two different machines (both macOS 10.14.6 with VSCode 1.37.1), when I now try to use the Remote-SSH extension to talk to remote RHEL7 systems, I'm prompted for a password (even though I have SSH keys setup), and no matter what I do, it fails.
Now from Terminal, everything still works fine. If I do If anyone has any insight, I'm all ears. |
I have the same problem: 03:04:19.751] "install" terminal command done |
This issue started with the extension not handling () in names correctly which is now fixed. Then the terminal wrapping issue which might be addressed by disabling Then it is not obvious that other people are seeing the same issue. @fseesink please open a new issue. If you test it from another terminal make sure that you are trying to connect exactly the same as how vscode is. e.g. vscode is using @scq000 Not sure what's going on. Please open a new issue with the full log. |
Hey @roblourens , next to the issue I reported still not being fixed, there are obviously more people like me here having problems with this extension after upgrading to 1.37 and/or in combination with the latest version of the extension. I helped you with this issue and gave answers to your questions and put valuable time of my daytime job in testing this over and over again (for hours really). And now, without this issue being fixed you just close this issue without any reason. Because you just feel like closing it??? Without even asking me/us if it's fixed?? This way of communication/handling doesn't come accross as very professional and reliable to me. And to be honoust after months of all kinds of connection problems with this extension I'm starting to lose faith in this extension very quickly now. I think it's hard to believe this extension will ever become stable. Sometimes it works and suddenly it stops working again on and off everytime again. Which really is a pitty, because I need it for my job badly and I like the whole idea of it and would also like to thank you guys for making this great extension. If it works. I know it's in preview still, but it's taking a very long time to make this stable obviously and it's taking me way too much time to fix the problems everytime for months now to be able to use it. Today I had to spent another few hours to make the connection work again, which NEVER returned for whatever reason. It's pretty random and feels very unreliable and delicate. Sorry, I am going to look for another solution now to be able to do my job. I can't rely on this extension unfortunately and it's taking way to long to become stable. And if you guys just close this problematic issues and act like it's fixed, than I don't believe chances are this will become a problemless extension in the future very soon. I'm sorry, I'm gonna look further for other options now. |
chiming in, I too have the same issue
|
@Friksel, I apologize, this shouldn't have been closed. I thought I was waiting to hear back from you for something but actually you had answered my questions to date. I am tracking dozens of confusing issues every day and make mistakes. The other people in this issue are seeing different symptoms and I prefer that people open new issues because I get confused by the noise (and @malonnnn please open a new issue) I'm still not sure what your issue is but if you are interested in trying one more thing, this may be fixed in the nightly build of the ssh extension. Find "Remote - SSH (Nightly)" in the marketplace (and uninstall the stable version). If you have set |
Alright. Thanks for your apologies and clearing that up. Apologies and I understand. For me it also had to do with problems I faced with using the plugin for some months now and it takes too much time for me to keep trying to work around them. And that's a pitty, because I really like this extension and it creates an important workflow in my job that would otherwise be a pain to do. So if the extension connects everything is fine, but when it doesn't connect for hours it's very frustrating, because than I literally cannot do my job. Although I understand it's still in preview and I understand you guys work very hard on this. So thanks for re-opening the issue.
I was about to try the nightly build, but first I removed the showLoginTerminal setting I indeed had set. Removing this setting fixed the problem instantly. When adding showLoginTerminal: true again the problem got back and I never got a connection with that setting set to true. Removing the setting again fixed the connectionproblem again. After leaving it out I had no problems anymore. Today I had no problems connecting after that. Hope it holds!! And glad this fixed the connection problems (at least for now). What I don't understand is why removing a setting to just show or hide the terminal should affect the connection to be made. Especially because the error message I previously got was that there was unparsable output. I'm very interested; Could you please let me know why this just showing/hiding of the terminal affects the connection of the extension? And are there any plans on fixing this so we can leave the terminal open during connecting? (which would be welcome in the future for debugging-reasons perhaps) BTW it's working in VS Code 1.37.1 now too. Thanks for the quick reactions and great it's working now (at least for now, hope it holds!!). And let this extension be a very stable extension. Because it's just a briljant idea and great and important tool to have. I'd rather stay with this extension than needing to look for alternatives. So keep up the great work. |
Ok, that's really good to hear. We are running the ssh command in a terminal in the background, and by default the terminal is not actually rendered. But if that setting is set, then the terminal is rendered, and if your pane is set to be somewhat narrow, then lines will wrap. We are trying to parse the terminal's output and if there are newlines where we don't expect, it breaks the parsing code. Plus on windows, this seems to happen when the terminal is not actually displayed but gets some narrow default width in the background somehow... In the nightly version, we also changed the way that we output and parse the lines we expect, so it should be much more resilient even when it is rendered. Please let me know if you have any more issues, thanks for using it! |
I'm also having this issue right after updating to 1.37.1. |
The error I'm seeing is as follows:
|
Same Issue here on 1.38
Curiously I am also seeing the error popup |
Neither of you are seeing the same issue, please open your own issues. |
im getting the same issue, how to solve it? |
Same issue, this is quie annoying already. Sometime when i connect to the root it works, but when i try to connect to already opened folders it doesn't
|
Please open a new issue. |
This also worked for me |
I had problem connecting to target host via bastion with following ssh config Output and error was like jorymorrison had
Found out something wrong with default Windows 10 ssh client. Solved it setting Remote SSH: Path to ssh client from git-for-windows binaries. Path - %git-for-windows-path%/usr/bin/ssh |
After VSCode update 1.37.0 the Remote/Remote SSH extension(s) cannot connect to the remote server anymore as was working before. As seen on two different machines both using windows host with vs code to connect to a VM running Ubuntu 18.04.
I have the latest upgrades of the extensions installed and did an extra check for updates, but it couldn't find any)
When swithing back to the 1.36.x version of VS Code everything works fine again with the same setup. And when switching to 1.37.0 after, again the problem is back again: can't make the connection working.
In the output it says twice:
bash) was unexpected at this time.
.I also tried uninstalling the vscode-server on the remote via vs code 'Remote-SSH: Uninstall VS Code Server from host', but that didn't seem to work as it exited with code 1.
So than I tried 'uninstalling' the vs code server by removing the vscode-server folder on the remote, but that didn't help connecting (and installing) from vs code later either.
There's no installation on the remote after this (no 'wget' and all that in the output and no re-creation of the vscode-server folder on the remote).
This is the full output I'm getting:
versions
Steps to Reproduce:
Does this issue occur when you try this locally?: ahum?!
Does this issue occur when you try this locally and all extensions are disabled?: ahum?!
The text was updated successfully, but these errors were encountered: