Yii配置与云控制错误cctrluser key.add

Yii配置与云控制错误cctrluser key.add,yii,cloudcontrol,Yii,Cloudcontrol,我正在使用云控制配置YII框架,我正在尝试使用Windows PC中的命令提示符生成SSH密钥。我在我的PC中安装了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 gen

我正在使用云控制配置YII框架,我正在尝试使用Windows PC中的命令提示符生成SSH密钥。我在我的PC中安装了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
C:\Users\sumit>cctrluser key.add
密钥“C:\Users\sumit/.ssh/id\u rsa.pub”似乎无效或未找到!
键入“Yes”以生成新的默认SSH密钥对:Yes
回溯(最近一次呼叫最后一次):
文件“cctrluser”,第150行,在
文件“cctrluser”,第34行,主
parse_cmdline中的第144行文件“cctrluser”
运行文件“cctrl\common.pyo”,第99行
addKey中第124行的文件“cctrl\user.pyo”
文件“cctrl\keyhelpers.pyo”,第149行,在create\u new\u default\u ssh\u keys中
文件“cctrl\keyhelpers.pyo”,第57行,在generate\u rsa\u keys中
文件“cctrl\keyhelpers.pyo”,第85行,手动生成\u rsa\u密钥
文件“cctrl\keyhelpers.pyo”,第101行,在generate\u private\u rsa\u key\u文件中
文件“paramiko\\ uuuuu init\ uuuuu.pyo”,第65行,在
文件“paramiko\transport.pyo”,第45行,在
文件“paramiko\ecdsakey.pyo”,第24行,在
ImportError:没有名为ecdsa的模块
我找到了一个解决方案

获得Git Bash

然后使用以下命令:

$ ssh-keygen -C youremail@provider.com  
将创建的ssh保存到id_rsa中(默认,建议的位置)

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


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

今天发布了新版本,具有固定的ecdsa依赖项,因此再次支持自动生成ssh密钥。

我在windows下的cloudcontrol也有同样的问题。