ssh: Could not resolve hostname github.com: Name or service not known; fatal: The remote end hung up unexpectedly

后端 未结 7 1650
予麋鹿
予麋鹿 2020-12-12 20:10

The process of setting up a GitHub account works just fine but it doesn\'t work when I try pushing my repository to GitHub. The error message it shows is as follows:

7条回答
  •  旧巷少年郎
    2020-12-12 21:03

    On centos 7

    1. check ip address using command ifconfig. you will get information like this

      ens33: flags=****  mtu ****
      
      inet ***.***.***.***  netmask ***.***.***.0  broadcast ***.***.***.***
      
    2. add inet ip address and hostname in file /etc/hosts

      a. open file vi /etc/hosts

      b. add ip and host like ip_address hostname hostname

    3. reboot

    It will attach ip and host.

提交回复
热议问题