2014-12-03 255 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