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

Bad configuration option: pubkeyacceptedalgorithms #5851

Closed
catteneo opened this issue Nov 10, 2021 · 7 comments
Closed

Bad configuration option: pubkeyacceptedalgorithms #5851

catteneo opened this issue Nov 10, 2021 · 7 comments
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@catteneo
Copy link

catteneo commented Nov 10, 2021

  • VSCode Version: 1.62.1
  • Local OS Version: Windows 10 Build 19043.1320
  • Remote OS Version: Ubuntu 18.04.5 LTS - Kernel 4.15.0-151
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

  1. Update ~/.ssh/config with added options to host (added becuase of this issue)
    HostkeyAlgorithms +ssh-rsa PubkeyAcceptedAlgorithms +ssh-rsa
  2. Connect
  3. Get error Bad configuration option: pubkeyacceptedalgorithms

This is probably related with the version of OpenSSH used (pre 8.5), as the deprecated name of that configuration option works PubkeyAcceptedKeyTypes

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Nov 10, 2021
@tanhakabir
Copy link

When you connect through PowerShell do you still see the same issue? We use the default ssh binary in your machine so I'm not sure why we'd be using a different one than what is set to default.

@tanhakabir tanhakabir added the info-needed Issue requires more information from poster label Nov 10, 2021
@catteneo
Copy link
Author

Just tried it, got the same error through the PowerShell
Checked the ssh binary, its OpenSSH_8.1p1 for Windows

@tanhakabir
Copy link

Hm if PowerShell can't connect then the extension won't be able to connect because it uses PowerShell on your machine to ssh connect. Are you able to update OpenSSH on your machine?

@catteneo
Copy link
Author

According to its Github there's a new version available including OpenSSH_8.6
https://github.com/PowerShell/Win32-OpenSSH/releases/

@tanhakabir
Copy link

Are you able to try to use that? Once PowerShell can ssh to your remote then the extension in VS Code can. Until PowerShell works there's nothing we can do in the extension to make it work.

@catteneo
Copy link
Author

Managed to manually update System's ssh.
Can now ssh into the machine using PowerShell.
Remote-SSH extension is now working again.

@tanhakabir
Copy link

Great thanks! Closing this issue now

@github-actions github-actions bot locked and limited conversation to collaborators Dec 28, 2021
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 ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants