kingToolbox / WindTerm

A professional cross-platform SSH/Sftp/Shell/Telnet/Serial terminal.
https://kingtoolbox.github.io
22.97k stars 1.77k forks source link

Bug when the publickey file path contains Chinese characters #159

Open Yurunsoft opened 3 years ago

Yurunsoft commented 3 years ago
[2021-08-17 10:59:48] ssh_pki_import_privkey_file: Error opening D:\XX新密钥\xx_dt: No such file or directory
[2021-08-17 10:59:51] ssh_pki_import_privkey_file: Error opening D:\XX新密钥\xx_dt: No such file or directory
Yurunsoft commented 3 years ago

A prompt should be given on the GUI instead of "Authentication failed, please try again."

kingToolbox commented 3 years ago

Thank you. I will check and fix this issue. The SSH feature of WindTerm is implemented based on the libssh libaray. and sometimes libssh may not report the detailed error message, so there is no way to get it. Let me see if it can be achieved by modifying the libssh code.

SlaviusPrime commented 3 years ago

Bug with cyrillic symbols is too.

kingToolbox commented 3 years ago

Thank you, I think this is because libssh does not correctly handle the system encoding when setting the public-key path. I will fix this in WindTerm_2.2.0_Prerelease_1 version.

kingToolbox commented 3 years ago

Sorry for the late reply. I just finished a long trip, and because there is no Internet, I can't deal with the issue in time.

I am happy to inform you that WindTerm_2.2.0_Prerelease_1 has been released and this issue has been fixed. You can download and check it now. Thank you.