2014-12-03 203 views
0

如果我尝试ssh或git push到openshift,我会收到错误“access not allowed”。 SSH的公钥上市openshift和匹配在〜/ .ssh/id_rsa.pub Linux Mint的17openshift ssh访问被拒绝

[email protected] ~ $ ssh-keygen -l 
Enter file in which the key is (/home/dick/.ssh/id_rsa): 
2048 70:f1:92:9d:d8:7b:09:4c:8e:7d:60:94:53:a0:7a:8a OpenShift-Key (RSA) 
[email protected] ~ $ rhc sshkey list 
default (type: ssh-rsa) 
----------------------- 
    Fingerprint: 70:f1:92:9d:d8:7b:09:4c:8e:7d:60:94:53:a0:7a:8a 
    Available: true 

You have 1 SSH keys associated with your account. 
[email protected] ~ $ cd /c/src/time 
[email protected] /c/src/time $ git push 
ssh: connect to host time-cronos.rhcloud.com port 22: Connection timed out 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 
[email protected] /c/src/time $ ssh time-cronos.rhcloud.com 
ssh: connect to host time-cronos.rhcloud.com port 22: Connection timed out 
[email protected] /c/src/time $ 
+0

对不起,这哪里是 “不允许访问” 的错误?我没有看到你的示例输出中的任何地方。 – Kenster 2014-12-03 21:15:19

回答

0

关键听起来像是你在哪里,也许22端口被封锁?你可以在time-cronos.rhcloud.com上telnet到22号端口吗?如果不是的话,它可能是您的系统管理员参与或尝试从其他位置开始的时间。

0

看来,22端口被阻止的连接超时,我建议,以获得有关端口状态的更多信息运行nmap的扫描前提是你必须端口扫描服务器的权限:

NMAP -p 22 --reason -sT time-cronos.rhcloud.com