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

1.7.HTTP(S)通过SSH中转-缺少加密算法 #518

Open
houchj opened this issue Dec 31, 2022 · 0 comments
Open

1.7.HTTP(S)通过SSH中转-缺少加密算法 #518

houchj opened this issue Dec 31, 2022 · 0 comments

Comments

@houchj
Copy link

houchj commented Dec 31, 2022

按照-1.7.HTTP(S)通过SSH中转的使用方法-缺少加密算法

Expected Behavior

应该连接成功

Current Behavior

ERROR err : run service [http:http] fail, ERR:http servcie fail, ERR: init service fail, ERR: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1], server offered: [diffie-hellman-group-exchange-sha256]

Possible Solution

添加这些缺少的算法

Steps to Reproduce

  1. 准备一个ssh server
  2. 使用1.7.HTTP(S)通过SSH中转 中的方法连接 proxy http -T ssh -P "xxxx:22" -u user -A demo -t tcp -p ":28080"
  3. 报错

Context (Environment)

  1. proxy version is : v? v12.3
  2. full command is :? proxy http -T ssh -P "xxxx:22" -u user -A demo -t tcp -p ":28080"
  3. system is : Ubuntu22,Win11 报同样的错误
  4. full log is: ?
    2022/12/30 22:52:51.460465 WARN connect to ssh &[xxxx:22] fail
    2022/12/30 22:52:51.460576 ERROR err : run service [http:http] fail, ERR:http servcie fail, ERR: init service fail, ERR: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1], server offered: [diffie-hellman-group-exchange-sha256]

按照-1.7.HTTP(S)通过SSH中转的使用方法-报错缺少加密算法

Detailed Description

请添加相应的算法

Possible Implementation

请添加相应的算法到程序里面,好像修改系统级别的~/.ssh/config /etc/ssh/ssh_config 没有用,感觉应该是程序里面指定的算法,所以只能程序修改。

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

1 participant