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

Couldn't start a terminal for, Unknown DH group error #413

Open
zeeskore opened this issue Dec 28, 2023 · 2 comments
Open

Couldn't start a terminal for, Unknown DH group error #413

zeeskore opened this issue Dec 28, 2023 · 2 comments

Comments

@zeeskore
Copy link

I get the following error when I try to connect to a remote host terminal that is an embedded device requiring the diffie-hellman-group1-sha1 key exchange.

"Couldn't start a terminal for, Unknown DH group"

Using nodejs and ssh2 in javascript, I am able to complete the connection successfully, but not with SSHFS in vscode. Any suggestions?

Here is my sshfs.config in vscode settings.json

"sshfs.configs": [
{
"name": "xxxx",
"host": "Host IP",
"port": "22",
"username": "root",
"algorithms": {
"kex": ["diffie-hellman-group1-sha1"],
"cipher": [],
"serverHostKey": ["ssh-rsa"],
"hmac": []
}
]

@zeeskore
Copy link
Author

zeeskore commented Dec 29, 2023

I think I found the reason for the problem. I am using VS Code 1.83 which uses electronjs and boringSSL that has removed modp1 and modp2 (diffie-hellman-group1-sha1) from the code. So it doesn't work. If we can add an option to SSHFS and ssh2 to use a custom nodejs install that uses openssl, then we can get around this issue. This is still needed for ssh to older hardware like cisco switches.

@Dotile
Copy link

Dotile commented Nov 13, 2024

Did you fix this or have made any progress with this issue?
I'm encountering the same problem with the same ssh config parameters.

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

No branches or pull requests

2 participants