在antdb安装的时候,提示“unable to exchange encryption keys”。

0 SDKhe 1年前 344次点击

求助,在antdb安装的时候,提示“unable to exchange encryption keys”,这要怎么解决啊?

共 1 条评论
0 

集群版本中启动agent的时候,可能会出现这个报错,原因是:libssh2的版本过低,可通过升级libssh2版本解决。

可以通过源码编译安装 libssh2 :

下载地址:https://www.libssh2.org/,备份地址:http://120.55.76.224/files/libssh2/
源码编译安装(root 执行)

wget https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
tar xzvf libssh2-1.9.0.tar.gz
cd libssh2-1.9.0
./configure
make
make install

提供一个C代码检查libssh2版本:

#include <stdio.h>
#include <libssh2.h>

int main ()
{
printf("libssh2 version: %s\n", LIBSSH2_VERSION );
}

保存为 : check_libssh2.c

编译: gcc check_libssh2.c -o check_libssh2
执行: ./check_libssh2
预期的输出为:

libssh2 version: 1.9.0

添加一条新评论

登录后可以发表评论 去登录