g

丘海东

读书写字 热爱生活 ⌚️📖️🖋️🏀️🚲️🚉️🎼️🍵️🏞️📷️

Ssh: Connect to Host ssh.github.com Port 443: Connection Refused

出现标题问题,打开:IPAddress.com ,有时会出现403禁止访问的错误,要点一下Go to Homepage才行。输入:ssh.github.com,得到IP地址:
140.82.113.36
140.82.114.35
修改本地hosts:

1
2
cd /etc
sudo gedit hosts

添加:

1
2
140.82.113.36          ssh.github.com
140.82.114.35          ssh.github.com

22端口无法连接:

ssh: connect to host github.com port 22: Connection timed out

curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接