3

我安装了 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
4

2 回答 2

4

我找到了解决方案。

获取 Git Bash。

然后使用以下命令:

$ ssh-keygen -C yourremail@provider.com

将创建的 ssh 保存到 id_rsa (默认,建议的地方)

yourremail@provider.com 是您用于创建 cloudcontrol 帐户的电子邮件。

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

于 2014-02-22T14:53:03.673 回答
1

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

于 2014-02-25T15:35:34.020 回答