GBase 8a在用过sftp加载时,由于sha256原因导致报错 ERROR 1733 (HY000): (GBA-01EX-700) Gbase general error: I/O operation on sftp failed with error - Failed initialization, File name

redhat7 的sshd开始支持sha256的密钥传输算法,默认的sha1不再支持。如果GBase 8a数据库版本比较老,则在加载开启了sha256安全加固的sftp时,就会报这个错误 Failed initialization。

报错样例

gbase> load data infile 'sftp://gbase:gbase1234@10.0.2.101/home/gbase/1.txt' into table t1;
ERROR 1733 (HY000): (GBA-01EX-700) Gbase general error: I/O operation on sftp://gbase:*********@10.0.2.101/home/gbase/1.txt failed with error - Failed initialization, File name sftp://gbase:*********@10.0.2.101/home/gbase/1.txt

解决方法

升级支持sha256的GBase 8a集群版本即可。

参考