我正在使用Cloud Control配置YII框架,我正在尝试使用Windows PC中的命令提示符生成SSH密钥。我在我的电脑上安装了cctrl 1.8.5。安装应用程序后,我在命令提示符下键入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
答案 0 :(得分:2)
我找到了解决方案。
获取Git Bash。
然后使用以下命令:
$ ssh-keygen -C youremail@provider.com
将创建的ssh保存到id_rsa(默认,建议的地方)
youremail@provider.com是您用于创建cloudcontrol帐户的电子邮件。
然后进入您的cloudcontrol帐户并在SSH密钥输入中添加〜/ .ssh / id_rsa.pub的内容。
答案 1 :(得分:0)
今天发布了新的cctrl版本,具有固定的ecdsa依赖性,因此再次支持自动生成ssh密钥。