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

Unable to Remote-SSH #1678

Closed
minatverma opened this issue Oct 16, 2019 · 14 comments
Closed

Unable to Remote-SSH #1678

minatverma opened this issue Oct 16, 2019 · 14 comments
Labels
info-needed Issue requires more information from poster

Comments

@minatverma
Copy link

Issue Type: Bug

Error Message:
[19:26:24.304] SSH Resolver called for "ssh-remote+devde", attempt 1
[19:26:24.304] SSH Resolver called for host: devde
[19:26:24.304] Setting up SSH remote "devde"
[19:26:24.352] Using commit id "6ab598523be7a800d7f3eb4d92d7ab9a66069390" and quality "stable" for server
[19:26:24.355] Testing ssh with ssh -V
[19:26:24.377] ssh exited with code: 0
[19:26:24.377] Got stderr from ssh: OpenSSH_7.9p1, LibreSSL 2.7.3
[19:26:24.383] Running script with connection command: ssh -T -D 51911 -o ConnectTimeout=15 devde bash
[19:26:24.384] Install and start server if needed
[19:26:29.111] > bash: bash: command not found
[19:26:29.112] Got some output, clearing connection timeout
[19:26:29.370] "install" terminal command done
[19:26:29.370] Install terminal quit with output: bash: bash: command not found
[19:26:29.370] Received install output: bash: bash: command not found
[19:26:29.371] Failed to parse remote port from server output
[19:26:29.372] Resolver error:
[19:26:29.375] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"UnparsableOutput","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","gotUnrecognizedPrompt":"0","remoteInConfigFile":"1"},"measures":{"resolveAttempts":1,"retries":1}}
[19:26:29.377] ------

Extension version: 0.47.1
VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:33:00.827Z)
OS version: Darwin x64 19.0.0

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz (4 x 1600)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 2, 3, 3
Memory (System) 8.00GB (0.75GB free)
Process Argv
Screen Reader no
VM 0%
@roblourens
Copy link
Member

Does your remote have bash on the path?

@roblourens roblourens added the info-needed Issue requires more information from poster label Oct 16, 2019
@minatverma
Copy link
Author

Does your remote have bash on the path?

Yes. @ /usr/bin/bash
and it is in the path.

@roblourens
Copy link
Member

What happens if you run ssh devde bash?

Does it also exist at /bin/bash?

@minatverma
Copy link
Author

Interestingly, it errors out.

bash-3.2$ ssh devde bash
/etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
bash: bash: command not found

Also, the machine where I was able to open remote, does not connect too, it hangs without any error message.

bash-3.2$ ssh qade bash
/etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

however, I am able to get bash running just after logging into the machines.

This is what I have in bash_profile:

.bash_profile

Get the aliases and functions

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH

Nothing unusual.

@roblourens
Copy link
Member

Ok, kind of strange, not sure how you ended up without bash on the path. What OS? And does /bin/bash exist? I think I need to call that instead of bash on the PATH.

@jingpengw
Copy link

jingpengw commented Oct 19, 2019

I got the following error:

[07:31:59.890] remote-ssh@0.47.1
[07:31:59.890] linux x64
[07:31:59.891] SSH Resolver called for "ssh-remote+titan02", attempt 1
[07:31:59.891] SSH Resolver called for host: titan02
[07:31:59.891] Setting up SSH remote "titan02"
[07:31:59.931] Using commit id "6ab598523be7a800d7f3eb4d92d7ab9a66069390" and quality "stable" for server
[07:31:59.932] Testing ssh with ssh -V
[07:31:59.943] ssh exited with code: 0
[07:31:59.943] Got stderr from ssh: OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n  7 Dec 2017
[07:31:59.945] Running script with connection command: ssh -T -D 39945 -o ConnectTimeout=15 titan02 bash
[07:31:59.945] Install and start server if needed
[07:32:16.949] Resolver error: Connecting with SSH timed out
[07:32:16.950] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"Timeout","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","gotUnrecognizedPrompt":"0","remoteInConfigFile":"1"},"measures":{"resolveAttempts":1,"retries":1}}
[07:32:16.951] ------

I tried to run the command:

ssh -T -D 39945 -o ConnectTimeout=15 titan02 bash

it hangs. If I change the -T to -t, it works. maybe a simple replacement in code will fix it?

@jingpengw
Copy link

This issue seems only happens in ubuntu 18.04. it works in ubuntu 16.04.

@roblourens
Copy link
Member

Please file your own issues. That looks different from the OP's issue.

@vscodebot vscodebot bot closed this as completed Oct 31, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 31, 2019

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!

@pabloazurduy
Copy link

@jingpengw I had the same error

ssh -T -D 39945 -o ConnectTimeout=15 titan02 bash # not working
ssh -t -D 39945 -o ConnectTimeout=15 titan02 bash # works

There is a way to change that in vscode ?
Thanks !

@roblourens
Copy link
Member

Does it work with no -t at all? If not please give more details in a new issue.

@chenqiuyuan
Copy link

I met the same error in which the ssh is totally ok. The error message is identical.

@svanschalkwyk
Copy link

svanschalkwyk commented Nov 26, 2019

Same here. Linux Mint 19. New install.
From same server (running VS on the server), always asks for password, then connects.
From remote laptop (Mint 18), times out with this.
"-t" instead of "-T" works.
Does not work without a "t" or "T".

TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"Timeout","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","gotUnrecognizedPrompt":"0","remoteInConfigFile":"1"},"measures":{"resolveAttempts":1,"retries":1}}

@andocodes
Copy link

Similar issues as @svanschalkwyk.

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

7 participants