SSH funktioniert plötzlich nicht mehr. Ich verwende macOS 10.13.4. Ich bekomme heute jedes Mal eine Auszeit, aber gestern hat alles funktioniert. Ich habe meinen öffentlichen Schlüssel zu GitHub hinzugefügt . Beim Ausführen erhalte ich folgende Ausgabe ssh
:
$ssh -vvv -T git@github.com
OpenSSH_7.7p1, OpenSSL 1.0.2o 27 Mar 2018
debug1: Reading configuration data /Users/nurrony/.ssh/config
debug1: /Users/nurrony/.ssh/config line 30: Applying options for github.com
debug1: /Users/nurrony/.ssh/config line 47: Applying options for *
debug1: Reading configuration data /usr/local/etc/ssh/ssh_config
debug2: resolving "github.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to github.com [192.30.255.113] port 22.
debug1: connect to address 192.30.255.113 port 22: Operation timed out
debug1: Connecting to github.com [192.30.255.112] port 22.
debug1: connect to address 192.30.255.112 port 22: Operation timed out
ssh: connect to host github.com port 22: Operation timed out
Meine ~/.ssh/config
liest sich wie folgt:
Host github.com
ControlMaster auto
ControlPersist 120
HostName github.com
User git
PreferredAuthentications publickey
IdentityFile ~/.ssh/nur-macbookpro
Host *
# Always use SSH2.
Protocol 2
# Use a shared channel for all sessions to the same host,
# instead of always opening a new one. This leads to much
# quicker connection times.
ControlMaster auto
Controlpath /tmp/ssh-%r@%h:%p
ControlPersist 1800
# also this stuff
Compression yes
TCPKeepAlive yes
ServerAliveInterval 20
ServerAliveCountMax 10
Ich habe jeden Vorschlag ausprobiert, der von der Websuche gefunden wurde, aber nichts funktioniert. Ich kann gut ssh, wenn ich meinen Mac mit einem mobilen Hotspot verbinde.
Wie löse ich dieses Problem?
Beantwortung der Frage im Namen von OP, um den Kreis zu schließen. Siehe Revisionsverlauf für Quelleninformationen.
Das Problem wurde gelöst. Es stellte sich heraus, dass der ISP den Traffic-Port 22 blockierte. Ich musste den ISP kontaktieren, um das Problem zu beheben.
Hast du folgendes versucht:
ssh-add -l
wird es dir sagen).
Allan