通过SSH连接到服务器超时,并取消任何可能的连接到工作networking中的同一台服务器

在更新并重新启动gcloud及其SSH连接后,使用gcloud updategcloud init ,然后使用gcloud compute config-ssh --remove && gcloud compute config-ssh ,有时和不可预知地连接到服务器,假设ssh hostname有时会发展为如下:

关于Google云端平台的vim ~/.ssh/config是:

  20 # Google Compute Engine Section 21 # 22 # The following has been auto-generated by "gcloud compute config-ssh" 23 # to make accessing your Google Compute Engine virtual machines easier. 24 # 25 # To remove this blob, run: 26 # 27 # gcloud compute config-ssh --remove 28 # 29 # You can also manually remove this blob by deleting everything from 30 # here until the comment that contains the string "End of Google Compute 31 # Engine Section". 32 # 33 # You should not hand-edit this section, unless you are deleting it. 34 # 35 Host hostname 36 HostName XXX.XXX.XX.XX 37 IdentityFile /Users/userz/.ssh/google_compute_engine 38 UserKnownHostsFile=/Users/userz/.ssh/google_compute_known_hosts 39 HostKeyAlias=compute.1736255031467791084 40 IdentitiesOnly=yes 41 CheckHostIP=no 42 43 # End of Google Compute Engine Section 

ssh -vvv hostname的输出是:

 OpenSSH_7.5p1, OpenSSL 1.0.2l 25 May 2017 debug1: Reading configuration data /Users/userz/.ssh/config debug1: /Users/userz/.ssh/config line 35: Applying options for hostname debug1: Reading configuration data /usr/local/etc/ssh/ssh_config debug2: resolving "XXX.XXX.XX.XX" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to XXX.XXX.XX.XX [XXX.XXX.XX.XX] port 22. debug1: connect to address XXX.XXX.XX.XX port 22: Operation timed out ssh: connect to host XXX.XXX.XX.XX port 22: Operation timed out 

之后,连接到服务器的任何连接,即使转到domain.com ,尝试telnet XXX.XXX.XX.XX 22ping XXX.XXX.XX.XX导致本地networking中的任何用户超时

我能做些什么来解决这个问题? 或者我该如何开始debugging这个?


系统信息:

 $ gcloud -v Google Cloud SDK 173.0.0 alpha 2017.09.15 beta 2017.09.15 bq 2.0.26 core 2017.09.25 gcloud gsutil 4.27 

MacOS Sierra 10.12.6