Skip to content
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

Could not establish to remote after updating win10 to 10.0.18362 #1152

Closed
pcshih opened this issue Aug 13, 2019 · 18 comments
Closed

Could not establish to remote after updating win10 to 10.0.18362 #1152

pcshih opened this issue Aug 13, 2019 · 18 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster

Comments

@pcshih
Copy link

pcshih commented Aug 13, 2019

  • VSCode Version: 1.38.0-insider (user setup)
  • Local OS Version: Windows_NT x64 10.0.18362
  • Remote OS Version: ubuntu 18.04.01 LTS
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

  1. clicking the Connect to Host in New Window button(before update to win10 10.0.18362, it will open new window and connect well)
  2. get the issues below
    it will pop up a cmd(did not pop before updating win10)
    cmd
    vscode output
    error window

Thank you very much.

@eric-mu
Copy link

eric-mu commented Aug 13, 2019

I got the same issue as you.

@pcshih pcshih changed the title Could not establish to remote after update win10 to 10.0.18362 Could not establish to remote after updating win10 to 10.0.18362 Aug 14, 2019
@eric-mu
Copy link

eric-mu commented Aug 15, 2019

Hey, I got the same issue, but I fixed it. You need to make sure there is no '(' or ')' in your host name in configuration file. Try to use only letters and numbers in your host name.

@pcshih
Copy link
Author

pcshih commented Aug 15, 2019

@eric-mu

There is not any '(' or ')' in my host name in configuration file.

Host "ip"
HostName "ip"
User PTe
IdentityFile ~/.ssh/id_rsa

@eric-mu
Copy link

eric-mu commented Aug 15, 2019

Maybe you could try to delete the quotation marks?
My configuration is:

Host AI-inter02-207
HostName 172.16.0.207
User ppz
IdentityFile C:\Softwares\VSCode\ssh-key\id_rsa

But it will not work if I modify to:

Host AI-inter02(207)
HostName 172.16.0.207
User ppz
IdentityFile C:\Softwares\VSCode\ssh-key\id_rsa

@pcshih
Copy link
Author

pcshih commented Aug 15, 2019

@eric-mu seems not work...
Host test
HostName 192.168.0.1
User PTe
IdentityFile C:\Users\ec131b.ssh\id_rsa

@eric-mu
Copy link

eric-mu commented Aug 15, 2019

I am sorry to hear that...
Maybe it is different between our issues.
Hope that you can fix it as soon as possible.

@pcshih
Copy link
Author

pcshih commented Aug 15, 2019

@eric-mu
I hope so......

@rafipiccolo
Copy link

in vscode settings :
search conpty
and uncheck it

Now it works. although i don't know what it means.

@roblourens
Copy link
Member

@pcshih if you connect with ssh in a normal windows command prompt, does it open a new window?

@pcshih
Copy link
Author

pcshih commented Aug 20, 2019

@roblourens
No, it does not open a new window...

@rafipiccolo
Thank you very much.

@roblourens
Copy link
Member

So disabling conpty fixed it? FYI @Tyriar I might have pinged you for that one already in another issue.

@Tyriar
Copy link
Member

Tyriar commented Aug 21, 2019

You should uncheck this and turn conpty back on:

image

/duplicate microsoft/vscode#73790

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 21, 2019
@pcshih
Copy link
Author

pcshih commented Aug 22, 2019

Thank you very much @Tyriar

@Rechart41
Copy link

Hello,
I also have this problem despite your tips..
Annotation 2019-08-26 160125

@roblourens
Copy link
Member

Not the same issue @Rechart41. Please open a new issue and make sure that you can connect to that remote from an external terminal. "Corrupted MAC on input"

@Rechart41
Copy link

@roblourens Oh.. I'm sorry ... I opened a new post #1249
I can connect to my server with Putty ...

@rafipiccolo
Copy link

Could you please explain briefly the difference between conpty / winpty ?
why is one better than the other ?

It feels strange to disable something windows 10 activated by default on every machine.

will it be added to the vscode remote tutorial ?

@Tyriar
Copy link
Member

Tyriar commented Sep 5, 2019

@rafipiccolo don't disable conpty, uncheck the box as outlined in #1152 (comment)

TLDR, winpty is the legacy third-party system, conpty is the new first-party one.

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

6 participants