-
Notifications
You must be signed in to change notification settings - Fork 267
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
Can't connect to Ubuntu: unreachable or not Linux x86_64 - IO is still pending on closed socket #51
Comments
Doc feedback verbatim with similar issue: "tried the remote extension but got following error on all test hosts: Cant connect to xxx_host: unreachable or not Linux x86_64 (ory). the ssh client is in the path and verified to be able to access all of the test nodes from windows prompt cmdline." |
@roycyt could you share the full contents of the "Remote - SSH" output channel? |
got the same problem. all outputs in remote-ssh window below:
|
hello, after read the code of this extension I made some change: t.generateMultiLineCommand = async function (e, t, n) {
const r = c(e);
if (i.isWindows) {
if (!process.env.TEMP) throw new Error("The TEMP environment variable must be set");
const i = s.join(process.env.TEMP, `vscode-linux-multi-line-command-${e.hostName}.sh`);
return new Promise(e => {
o.writeFile(i, t, t => { if (t) throw new Error(`Failed to write install script to path ${i}. ${t.message}`);
//add -t -t here
e(`type "${i}" | ${h()} -t -t ${u(n)} ${r}`) }) })
}
return `${h()} -t -t ${await l(e)} ${u(n)} ${r} << 'EOSSH'\n${t}\nEOSSH`
} command generated:
this command executed success in powershell, but got another error in this extension:
it looks like something wrong with openssh reported here: PowerShell/Win32-OpenSSH#856 hope this information may helps. |
Do you know why the |
Sorry I'm not sure. here is the description of
|
If I change the ssh client from openssh to the git ssh located at |
Can you tell me how to replace it? Thank you |
Step 1: Find the remote ssh extension file, in general at Step 2: Open Step 3: Modify the function h , change the return value to your ssh client path, for example, function h(){
return "C:\\Progra~1\\Git\\usr\\bin\\ssh.exe"
} The last step before this trick works, just save and relaunch vscode or reload window with |
I also get this error with: If I enable keeping the terminal open I see the welcome message and the uname result (Linux armv7l) before it closes. |
you can put your ssh client in your path environment variable instead of modifying the code |
In the nightly version of the extension, we search for ssh in different locations and include a setting for you to set the path if needed. Try it out (uninstall the stable version first) |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Steps to Reproduce:
Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes
I specify to use
C:\Users\Roy_Chen\.ssh\config
:I can use the Windows
ssh
command to connect to 10.144.44.42 with key based authentication.If I let the vscode terminal panel keep open, I can see the welcome message of my remote server.
After checked the sshd journal logs, it turned out that vscode disconnect from the server for unknown reasons.
The text was updated successfully, but these errors were encountered: