1. 程式人生 > >ssh: Could not resolve hostname git.*****-inc.com : Temporary failure in name resolution fatal: The remote end hung up unexpectedly

ssh: Could not resolve hostname git.*****-inc.com : Temporary failure in name resolution fatal: The remote end hung up unexpectedly

配置 soft mic target clas 無法執行 ssh pull 開發

  問題出現的情景:使用git pull拉取開發的代碼到測試服務器,報錯:

  ssh: Could not resolve hostname git.****-inc.com : Temporary failure in name resolution fatal: The remote end hung up unexpectedly

解決:

1.確定本地的ssh相關的文件是正確的(參考【本地服務器配置Git】

2.嘗試了網上的方法,不是沒root權限無法執行就是沒解決問題,後來找運維解決了

原因是:有人更改了服務器的文件,導致dns服務器被防火墻拉黑了,見下圖(來自運維),運維同學將該服務器開放出來就好了;

技術分享圖片

ssh: Could not resolve hostname git.*****-inc.com : Temporary failure in name resolution fatal: The remote end hung up unexpectedly