Tag: 公钥

通过远程主机closures我的容器的SSH连接

我尝试连接到我的bluemix正在运行的容器,但我得到这个错误: ssh -p 22 login@134.*.*.* Connection to 134.*.*.* closed by remote host. Connection to 134.*.*.* closed. 我隐藏的IP安全。 在docker集装箱build设期间,我将我的ssh公钥添加到/home/login/.ssh/authorized_keys。 然后我启动我的容器(运行sshd)并打开22端口。 在本地(与我的服务器上的docker),我可以连接到ssh与我的私钥到容器。 但是,当我在Bluemix上启动容器时,即使在属性公共IP地址之后,我也无法连接到ssh,当然,也发布了22个tcp端口。 为了运行我推送到ibm repo的容器,我使用ICE cli来运行带有启动所有服务(在sshd中)的入口脚本的容器。 ice run –publish 8572 –publish 8787 –publish 22 –memory 2048 –name boardvisor registry.ng.bluemix.net/org/test:latest /run.sh 然后,我去bluexmix web仪表板属性公共IP地址 当我收到一个响应sshd服务器,容器似乎工作和可达,但我不明白为什么我可以连接在我的docker服务器,但不是在bluemix服务器上。 我为您提供ssh详细连接: OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config […]