git push Often appear
Operation timed out, The details are as follows ：
$ git push origin 72 ssh_dispatch_run_fatal: Connection to 22.214.171.124 port 22: Operation timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
mean ： Connecting to the remote address 22 Port timeout , Then check the permissions and the existence of the remote repository .
First of all, you can access the warehouse on the web , So the question is not in the hint
Permissions or remote repositories .
View remote warehouse address
Check out the... Under the project
.git/config file , Be careful
.git A folder is a hidden folder .
[remote "origin"] url = firstname.lastname@example.org:yunzhiclub/xxxx.git fetch = +refs/heads/*:refs/remotes/origin/*
The address of the remote warehouse is
$ ssh github.com email@example.com: Permission denied (publickey).
Prompt permission does not allow , Make sure the network can access the remote host 22 port . If you can't access , So we need to find the reason on the Internet . First, let's see if we can ping through , If you can ping through , It depends on whether the firewall policy is disabled ssh Connect or 22 port .
There's no problem with the Internet , The problem should be in the certificate .
ping github.com panjieIMacdeiMac:app panjie$ ping github.com PING github.com (126.96.36.199): 56 data bytes 64 bytes from 188.8.131.52: icmp_seq=0 ttl=36 time=297.969 ms
obtain github.com Of ip The address is 184.108.40.206.
github.com,xx.xx.xxx.xxx One of , Find out
220.127.116.11 Don't agree with each other , Delete .
Problem solving .
git It may be caused by the following reasons ：
- The warehouse does not exist or does not have permission . verification ： Login on the web .
- Network problems . verification ：ping It doesn't work .
- ssh Or port problem . verification ：
ssh github.com, See the prompt is network error or permission not allowed .
- Certificate problem ： verification ： contrast
Host name ip AddressWhether or not
pingThe result is the same , Delete if inconsistent .