cweijan / vscode-database-client

Database Client For Visual Studio Code
https://database-client.com
MIT License
2.47k stars 281 forks source link

SSH: All configured authentication methods failed. #737

Closed cweijan closed 1 year ago

cweijan commented 1 year ago

Update: This issue has been resolved in version 6.6.0, please update the extension.


This error may occur when you connect using a key.

openssh no longer supports the ssh-rsa algorithm after openssh version 8.8, and you use the ssh-rsa key, so the server refuses the connection, there are two ways to solve this problem.

yxm9264 commented 1 year ago

不能在扩展这边解决这个问题嘛,操作服务器是比较麻烦的事情。😭

cweijan commented 1 year ago

@yxm9264 使用ssh-keygen -t ed25519生成键值对, 然后把公钥授权到服务器就是比较轻量的方式.

aluto-ss commented 1 year ago

It doesn't work for me, each client works fine, ms, as usual, doesn't work at all

cweijan commented 1 year ago

Sorry, but I have no control over it, you can only save a connection using native mode.

jstilwell commented 1 year ago

Hello, my private key works fine using the same configuration in Datagrip, so I'm not sure why it wouldn't work within this extension if the problem is OpenSSH.

Edit: Sorry, this was 100% user error. On the SSH connection, I was using the wrong username by mistake. My RSA key works fine with the correct username, for what it's worth. It's possible someone else is making the same mistake.

cweijan commented 1 year ago

@jstilwell HI, this issue has been resolved in version 6.6.0, and it is now possible to connect without any modifications.