flutter_server_box icon indicating copy to clipboard operation
flutter_server_box copied to clipboard

无法添加SSH密钥

Open Frankzhang854 opened this issue 2 years ago • 21 comments

不支持DES-EDE3-CBC 微信图片_20230211112827

Frankzhang854 avatar Feb 11 '23 03:02 Frankzhang854

不好意思,这个问题我无法解决。

可以到 https://github.com/TerminalStudio/dartssh2/issues ,发起issue寻求帮助。 本项目使用的是上述的ssh lib。

lollipopkit avatar Feb 11 '23 03:02 lollipopkit

IMG_1

IMG_2

IMG_3

类似的问题,私钥看似保存成功,但配置到服务器无法连接,“查看错误”显示 key not found,杀掉app重新打开私钥就没了,但没有明确报错,日志显示 Field "password" has not been initialized.

MkQtS avatar Aug 04 '23 15:08 MkQtS

@MkQtS 请尝试更新至最新版本(413),再次尝试保存密钥

lollipopkit avatar Aug 04 '23 15:08 lollipopkit

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@MkQtS Please try updating to the latest version (413), try saving the key again

Issues-translate-bot avatar Aug 04 '23 15:08 Issues-translate-bot

@MkQtS 请尝试更新至最新版本(413),再次尝试保存密钥

可以了,感谢

MkQtS avatar Aug 04 '23 16:08 MkQtS

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@MkQtS Please try updating to the latest version (413), try saving the key again

ok, thanks

Issues-translate-bot avatar Aug 04 '23 16:08 Issues-translate-bot

image

文件导入,格式也正确,提示如下问题:FormatException: PEM header must end with-----

likemuuxi avatar Dec 05 '23 01:12 likemuuxi

检查最后一行是不是空白,或者最后是不是有空格,去掉再保存试试? 这个问题我会优化

lollipopkit avatar Dec 05 '23 02:12 lollipopkit

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Check if the last line is blank, remove it and try saving again? I will optimize this issue

Issues-translate-bot avatar Dec 05 '23 02:12 Issues-translate-bot

检查最后一行是不是空白,或者最后是不是有空格,去掉再保存试试? 这个问题我会优化

尝试也不行,等您修复吧

likemuuxi avatar Dec 05 '23 02:12 likemuuxi

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Check whether the last line is blank or whether there is a space at the end. Try removing it and saving it? I will optimize this issue

It doesn't work even if you try. I'll wait for you to fix it.

Issues-translate-bot avatar Dec 05 '23 02:12 Issues-translate-bot

image

文件导入,格式也正确,提示如下问题:FormatException: PEM header must end with-----

@lollipopkit 我也遇到这个问题了,阿里云控制台生成的私钥xxx.pem,下载到手机,直接添加pem文件


更新,复制pem内容到扣扣,再复制后粘贴,添加成功了

L-Super avatar Jan 13 '24 17:01 L-Super

尝试此版本能不能从文件添加?

lollipopkit avatar Jan 14 '24 11:01 lollipopkit

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Try this version Can it be added from the file?

Issues-translate-bot avatar Jan 14 '24 11:01 Issues-translate-bot

尝试此版本能不能从文件添加?

Screenshot_2024-01-14-23-29-42-306_tech.lolli.toolbox.jpg

还是一样

L-Super avatar Jan 14 '24 15:01 L-Super

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Try this version Can it be added from the file?

Screenshot_2024-01-14-23-29-42-306_tech.lolli.toolbox.jpg

still the same

Issues-translate-bot avatar Jan 14 '24 15:01 Issues-translate-bot

I have this same error: PEM header must end with ----- IMG_0013 IMG_0014

urosch avatar Jan 15 '24 08:01 urosch

ED25519密钥无法添加,提示格式错误Screenshot_20240211-190932.png

Muska-Ami avatar Feb 11 '24 11:02 Muska-Ami

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Same problem, ED25519 key cannot be added

Issues-translate-bot avatar Feb 11 '24 11:02 Issues-translate-bot

提示不支持DES-EDE3-CBC,解决办法是xshell生成ED25519密钥,添加到authorized_keys原有内容后面(换行),这样serverbox就能使用新密钥连接了

denniszzg avatar Feb 15 '24 14:02 denniszzg

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It prompts that DES-EDE3-CBC is not supported. The solution is to use xshell to generate the ED25519 key and add it after the original content of authorized_keys (line break), so that serverbox can use the new key to connect.

Issues-translate-bot avatar Feb 15 '24 14:02 Issues-translate-bot