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

C:\Users\sumit>cctrluser key.add
Key 'C:\Users\sumit/.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 "cctrl\common.pyo", line 99, in run
File "cctrl\user.pyo", line 124, in addKey
File "cctrl\keyhelpers.pyo", line 149, in create_new_default_ssh_keys
File "cctrl\keyhelpers.pyo", line 57, in generate_rsa_keys
File "cctrl\keyhelpers.pyo", line 85, in generate_rsa_key_manually
File "cctrl\keyhelpers.pyo", line 101, in generate_private_rsa_key_file
File "paramiko\__init__.pyo", line 65, in <module>
File "paramiko\transport.pyo", line 45, in <module>
File "paramiko\ecdsakey.pyo", line 24, in <module>
ImportError: No module named ecdsa

最佳答案

我找到了解决办法。

获取 Git Bash。

然后使用以下命令:



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

[email protected] 是您用于创建 cloudcontrol 帐户的电子邮件。

然后进入您的 cloudcontrol 帐户并在 SSH key 输入中添加 ~/.ssh/id_rsa.pub 的内容。

关于cloudcontrol - 云控制错误 cctrluser key.add,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21947874/

10-11 10:49