New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增系统用户,选择私钥文件,总是报“ssh密钥不合法”的错误 #709

Closed
DHLWDX opened this Issue Sep 18, 2017 · 3 comments

Comments

Projects
None yet
5 participants
@DHLWDX

DHLWDX commented Sep 18, 2017

新增系统用户,选择私钥文件,总是报“ssh密钥不合法”的错误,我是把私钥,直接复制粘贴,保存为.txt文件

@hellorocky

This comment has been minimized.

Show comment
Hide comment
@hellorocky

hellorocky Sep 18, 2017

Contributor

最好使用 sublime或者 notpad++编辑器, txt文件好像会在文本后面添加换行之类的隐藏字符, 注意检查密钥中是否有换行, 不能有换行符

Contributor

hellorocky commented Sep 18, 2017

最好使用 sublime或者 notpad++编辑器, txt文件好像会在文本后面添加换行之类的隐藏字符, 注意检查密钥中是否有换行, 不能有换行符

@gxk001

This comment has been minimized.

Show comment
Hide comment
@gxk001

gxk001 Sep 26, 2017

ssh-keygent -t rsa
之后,把私钥文件 id_rsa 复制出来,上传私钥时选择这个文件

gxk001 commented Sep 26, 2017

ssh-keygent -t rsa
之后,把私钥文件 id_rsa 复制出来,上传私钥时选择这个文件

@ericyee

This comment has been minimized.

Show comment
Hide comment
@ericyee

ericyee Jan 31, 2018

上传的秘钥在生成的时候不能设置密码,否则提示秘钥不正确。

ericyee commented Jan 31, 2018

上传的秘钥在生成的时候不能设置密码,否则提示秘钥不正确。

@ibuler ibuler closed this Mar 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment