云控制错误 cctrluser key.add.



我安装了cctrl并尝试创建一个公钥,我在命令提示符下键入cctrluser key.add,我收到错误。有人可以帮忙吗?

C:Userssumit>cctrluser key.add
Key 'C:Userssumit/.ssh/id_rsa.pub' seems to be invalid or not found!
Type "Yes" to generate a new default SSH-key pair: yes
Traceback (most recent call last):
File "cctrluser", line 150, in <module>
File "cctrluser", line 34, in main
File "cctrluser", line 144, in parse_cmdline
File "cctrlcommon.pyo", line 99, in run
File "cctrluser.pyo", line 124, in addKey
File "cctrlkeyhelpers.pyo", line 149, in create_new_default_ssh_keys
File "cctrlkeyhelpers.pyo", line 57, in generate_rsa_keys
File "cctrlkeyhelpers.pyo", line 85, in generate_rsa_key_manually
File "cctrlkeyhelpers.pyo", line 101, in generate_private_rsa_key_file
File "paramiko__init__.pyo", line 65, in <module>
File "paramikotransport.pyo", line 45, in <module>
File "paramikoecdsakey.pyo", line 24, in <module>
ImportError: No module named ecdsa

我找到了一个解决方案.

获取 Git Bash。

然后使用以下命令:

$ ssh-keygen -C youremail@provider.com

将创建的 ssh 保存到id_rsa(默认,建议位置)

youremail@provider.com 是您用于创建云控制帐户的电子邮件。

然后进入您的云控制帐户,并在 SSH 密钥输入中添加 ~/.ssh/id_rsa.pub 的内容。

新的 cctrl 版本今天发布,修复了 ECDSA 依赖项,因此再次支持自动生成 ssh 密钥。

相关内容