简体   繁体   中英

windows git ssh connection time out

After I generated.ssh folder and SSH key I tried to connect to github using command ssh -T git@github.com . But it showed "ssh: connect to host ssh.github.com port 22: Connection timed out". I thought it probably because the port is not available. So I switch the port number to 443 by created a config file. Content as below:

Host github.com
User myEmail@xxx.com
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile .ssh/id_rsa
Port 443

But it not working, Error: ssh: connect to host ssh.github.com port 443: Connection timed out Could anyone can explain to me how can I fix this problem? BTW, I can connect to the github with Chrome, but if I ping github.com or any other website the time out will come.

  1. windows(7/10) firewall check
    inbound / outbound
    port: 443, 22

  2. router firewall check
    IP address is written in the router manual 192.168.xx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM