Vscode-remote-release: Failed to set remote SSH tunnel

Created on 3 May 2019  Â·  9Comments  Â·  Source: microsoft/vscode-remote-release


  • VSCode Version: 1.34.0-insiders
  • Local OS Version: Windows 10. 1809.
  • Remote OS Version: Ubuntu 18.04 (running on on hyper-v)
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

  1. remote-ssh: connect
  2. terminal prompts for password
  3. connection works but, eventually, I get an error message and this log
SSH Resolver called for "ssh-remote+vm-uishon-ubuntu"
SSH Resolver called for host: vm-uishon-ubuntu
Setting up SSH remote "vm-uishon-ubuntu"
Using commit id "473af338e1bd9ad4d9853933da1cd9d5d9e07dc9" and quality "insider" for server
Install and start server if needed
> 
> Pseudo-terminal will not be allocated because stdin is not a terminal.
> 
> [email protected]'s password:
> 
> 
> Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-48-generic x86_64)
> 
>  * Documentation:  https://help.ubuntu.com
>  * Management:     https://landscape.canonical.com
>  * Support:        https://ubuntu.com/advantage
> 
>  * Ubuntu's Kubernetes 1.14 distributions can bypass Docker and use containerd
>    directly, see https://bit.ly/ubuntu-containerd or try it now with
> 
>      snap install microk8s --classic
> 
>  * Canonical Livepatch is enabled.
>    - All available patches applied.
> 
> 44 packages can be updated.
> 0 updates are security updates.
> 
> 
> bash: cannot set terminal process group (119817): Inappropriate ioctl for device
> bash: no job control in this shell
> 
> Found existing installation...
> Found running server...
> 
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
> 
> 
> 6079d990-24c2-46f4-a8e6-6e5201303f32==45905==
> 
"install" terminal command done
Received install output: 6079d990-24c2-46f4-a8e6-6e5201303f32==45905==
Server is listening on port 45905
Spawning tunnel with: ssh  vm-uishon-ubuntu -N -L localhost:20479:localhost:45905
Spawned SSH tunnel between local port 20479 and remote port 45905
Waiting for ssh tunnel to be ready
Tunnel(45905) stderr: Permission denied, please try again.

Tunnel(45905) stderr: Permission denied, please try again.

Tunnel(45905) stderr: [email protected]: Permission denied (publickey,password).

Could not establish tunnel to "vm-uishon-ubuntu" (Max wait time exhausted).
Could not establish tunnel to "vm-uishon-ubuntu" (Max wait time exhausted).
needs-more-info ssh

Most helpful comment

If you have to use a password to log in, then you will have to set remote.SSH.showLoginTerminal.

See https://code.visualstudio.com/docs/remote/troubleshooting#_enabling-alternate-ssh-authentication-methods for details

Let me know whether that helps

All 9 comments

Is your /tmp noexec by any chance?

@uishon you might have another password prompt waiting for you in a terminal. The terminal should have popped up by itself. But if it didn't check the terminals in the drop down of the Terminal panel.

We are using PKI, which works direct but through the jump box, it does not. I also tried jumping through a jump box to a box that would require a password and was prompted. The error that appears is that the server isn’t x86_64 or something like that.

If you have to use a password to log in, then you will have to set remote.SSH.showLoginTerminal.

See https://code.visualstudio.com/docs/remote/troubleshooting#_enabling-alternate-ssh-authentication-methods for details

Let me know whether that helps

That helped. Thanks. I'm now connected and able to work remotely.

On Sat, May 4, 2019 at 4:16 AM Rob Lourens notifications@github.com wrote:

If you have to use a password to log in, then you will have to set
remote.SSH.showLoginTerminal.

See
https://code.visualstudio.com/docs/remote/troubleshooting#_enabling-alternate-ssh-authentication-methods
for details

Let me know whether that helps

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode-remote-release/issues/75#issuecomment-489281292,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACMZVKPSWTHLPGYMAQVB5F3PTTPVDANCNFSM4HKUOIZA
.

@uishon How are you dealing with the constantly changing IP address of Hyper-V? Everything works on my end except every time I wake the PC from sleep/restart, they ip address of the VM in Hyper-V is different and I have to change the host in ssh config.

I'm using a dns name. In my case it's the hyper-v Linux name with a ".
mshome.net" suffix. Works wakeup or reboot.

On Fri, 24 May 2019, 1:38 AM Jovin Mwilanga, notifications@github.com
wrote:

@uishon https://github.com/uishon How are you dealing with the
constantly changing IP address of Hyper-V? Everything works on my end
except every time I wake the PC from sleep/restart, they ip address of the
VM in Hyper-V is different and I have to change the host in ssh config.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-remote-release/issues/75?email_source=notifications&email_token=ACMZVKJ5AHLARPUV3X2GP2LPW4MF7A5CNFSM4HKUOIZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWDVUSA#issuecomment-495409736,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACMZVKNHY2VAQXCUBTSCSVTPW4MF7ANCNFSM4HKUOIZA
.

Okay thanks. I have a a linux vm called dev but ssh-ing to [email protected] but cannot resolve hostname. Am I doing something wrong?

I figured it out. I was using the hyper-v name given to the machine instead of the hostname of the linux machine. Works now. Thanks.

Was this page helpful?
0 / 5 - 0 ratings