Github - cannot connect via ssh from time to time

Situation

I use linux (mint mate 17.2), when I click on github via ssh, the connection does not work from time to time, it usually resumes after the computer and the network reboot. In a few days, it can become bad again, rather confusing.

Push via http never has such a problem, but it requires a password that is not convenient.

Debug Information

When pressed via ssh:

debug1: connect to github.com [192.30.252.129] port 22.

It is stuck on the specified line.

Then after a long wait, get a timeout:

debug1: connection to address 192.30.252.129 port 22: connection timeout

ssh: connection to github.com host port 22: connection timeout

fatal: Failed to read from remote repository.

Questions:

, ?


:

:

eric@eric-pc:~$ ping 192.30.252.129
PING 192.30.252.129 (192.30.252.129) 56(84) bytes of data.
64 bytes from 192.30.252.129: icmp_seq=1 ttl=50 time=345 ms
64 bytes from 192.30.252.129: icmp_seq=2 ttl=50 time=452 ms
64 bytes from 192.30.252.129: icmp_seq=3 ttl=50 time=373 ms
64 bytes from 192.30.252.129: icmp_seq=4 ttl=50 time=349 ms
64 bytes from 192.30.252.129: icmp_seq=5 ttl=50 time=346 ms
64 bytes from 192.30.252.129: icmp_seq=6 ttl=50 time=442 ms
64 bytes from 192.30.252.129: icmp_seq=7 ttl=50 time=344 ms

telnet :

eric@eric-pc:~$ telnet 192.30.252.129 22
Trying 192.30.252.129...

@Update:

ssh, github ssh, -.

:

  • , - .

  • ssh-agent, , ssh-agent, ssh-agent:

    eric      2552  0.0  0.0      0     0 ?        Zs   Jan08   0:00 [ssh-agent] 
    eric     27080  0.0  0.0  10628   316 ?        Ss   15:26   0:00 ssh-agent
    eric     27168  0.0  0.0  17028  2548 pts/7    S+   15:27   0:00 grep --color=auto ssh-agent

  • linux, ssh ,

Guess:

  • ssh-agent ,
  • github - ,

, , google, , , .

, , , ?

+4
1

ssh- git $ git remote add origin ssh://user@host:1234/srv/git/example ssh 1234. , , 1234 ( 1000). , .:)

.try ~/.ssh/config, .

Host github.com Port 22 Host * Port 1234

0

Source: https://habr.com/ru/post/1623871/


All Articles