ssh: connect to host ssh.github.com port 443: Operation timed out fatal: Could not read from remo...

已经反复多次遇到这个问题


ssh: connect to host ssh.github.com port 443: Operation timed out fatal: Could not read from remo..._第1张图片
image.png

如何解决

【前提进入当前文件目录下!!!而非根目录】
输入命令 vim ~/.ssh/config

Host github.com
User [email protected]
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

  1. ia 进入编辑模式
  2. 复制上面
  3. esc退出编辑
  4. :wq保存退出

输入命令 ssh -T [email protected]

ssh: connect to host ssh.github.com port 443: Operation timed out fatal: Could not read from remo..._第2张图片
image.png

成功!

你可能感兴趣的:(ssh: connect to host ssh.github.com port 443: Operation timed out fatal: Could not read from remo...)