如果我尝试ssh或git push to openshift,我会收到错误"访问不被允许"。 SSH公钥在openshift中列出,并与〜/ .ssh / id_rsa.pub Linux Mint 17中的密钥匹配。
dick@dick1 ~ $ 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)
dick@dick1 ~ $ 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.
dick@dick1 ~ $ cd /c/src/time
dick@dick1 /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.
dick@dick1 /c/src/time $ ssh time-cronos.rhcloud.com
ssh: connect to host time-cronos.rhcloud.com port 22: Connection timed out
dick@dick1 /c/src/time $
答案 0 :(得分:0)
听起来可能22号端口被阻挡在哪里?你能在time-cronos.rhcloud.com上telnet到22端口吗?如果没有,可能是时候让您的系统管理员参与或尝试从其他位置。
答案 1 :(得分:0)
似乎端口22在连接超时时被阻止,我建议运行nmap扫描以获得有关端口状态的更多信息,前提是您有权端口扫描服务器:
nmap -p 22 --reason -sT time-cronos.rhcloud.com