无法通过SSH密钥连接到bluemix容器 [英] unable to connect through SSH key to bluemix container
问题描述
我正在尝试使用bluemix容器服务(beta)
I am currently trying to use the bluemix container service (in beta)
当我想创建一个新的容器时,我按照步骤,只需选择名称和要打开的端口。我粘贴一个SSH,最后我得到错误:
无法创建容器。返回的错误消息是:错误请求。
When I want to create a new container, I follow the steps, and just choose the name and the ports to open. I paste a SSH, and at the end I get the error :
"Unable to create container. Error message returned is: Bad Request".
而如果我不粘贴我的密钥,那么没有问题。
Whereas if I do not paste my key, there is no problem.
,用puttygen创建,我仍然收到相同的错误。
I have tried with another key, created with puttygen, and I still get the same error.
我不知道是什么问题,因为我基本上选择了默认选项。
I don't know what is wrong, as I basically chose the default options.
我尝试过浏览器firefox&
I have tried with the browsers firefox & opera on windows.
如何解决这个问题?
推荐答案
使用ssh-rsa形式的公钥,空格,以==,space,username @ hostname结尾的200多个字符。我使用 ssh-keygen -t rsa
生成了我。我粘贴了生成的.pub文件的所有内容。
Use a public key of the form "ssh-rsa", space, 200+ characters ending in ==, space, username@hostname. I generated mine using ssh-keygen -t rsa
. I pasted the entire contents of the generated .pub file.
这篇关于无法通过SSH密钥连接到bluemix容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!