【发布时间】:2015-09-20 12:48:48
【问题描述】:
我正在尝试使用 erlang ssh 模块连接到 openssh(版本:SSH-2.0-OpenSSH_6.7p1 Debian-6)服务器。 OpenSSH 服务器使用默认配置
执行以下操作:
ssh:connect(Server, 22, [MyFancyOptions])
给予:
Selection of key exchange algorithm failed
确实,通过看Wireshark我看到了erlang客户端提出的密钥交换算法:
diffie-hellman-group1-sha1
和服务器:
curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
不匹配...
问题: 有什么办法可以连接到erlang中的ssh服务器吗?
PS。是的,我看到了
%% TODO: diffie-hellman-group14-sha1 should also be supported.
%% Maybe check more things ...
verify_algorithm(#alg{kex = 'diffie-hellman-group1-sha1'}) ->
但是不要告诉我神圣的 Erlang 不能处理现代的 ssh...
【问题讨论】:
标签: ssh erlang openssh erlang-otp