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

SSH error in VS Code: Permission denied, please try again. #3466

Open
vscodebot bot opened this issue Mar 12, 2020 · 0 comments
Open

SSH error in VS Code: Permission denied, please try again. #3466

vscodebot bot opened this issue Mar 12, 2020 · 0 comments

Comments

@vscodebot
Copy link

vscodebot bot commented Mar 12, 2020

  • VSCode Version: 1.43.0
  • OS Version: Windows 10

I want to access a remote VM with Remote - SSH extension from a Windows 10 machine. But I don't seem to succeed as VSCode is keeping prompting me to enter the password and deny the access each time. The VM runs on a Ubuntu 18.04 LTS OS.

I don't understand why I am being prompted to enter a password in the first place. Normally I should be able to access the VM without a password just like I do from the command line. I generated a ssh key for authentication and that's how I am able to acces the VM from the command line.

Steps to Reproduce:

  1. I access normally the remote VM from MobaXterm.
  2. I generate a ssh key in my windows 10 computer.
  3. I Install the public key in the remote server.
  4. I make sure that I can access the VM from the command line and it works fine.
  5. I install the Remote - SSH extension on VSCode.
  6. Press F1 > search and click Remote-SSH: connect to a host > execute command ssh username!ipaddress
  7. VSCode launch a new instance and prompt me for the password of username!ipaddress.
  8. I enter the password, and it prompts for the same reason with a message: Permission denied, please try again.

This issue occur even when all extensions are disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants