git - Github connection with ssh fail because of bad name resolution -
i have registered ssh key github account. keys in ~/.ssh/id_rsa_github_snail ~/.ssh/id_rsa_github_snail.pub i have repo wherein remote url configured use ssh: $ git remote -v origin git@github.com:danielsank/pong.git (fetch) origin git@github.com:danielsank/pong.git (push) however, when try push company computer, following error message danielsank@snail:~/src/pong$ git push ssh: connect host github.com.<company>.<name>.com port 22: connection timed out fatal: not read remote repository. please make sure have correct access rights , repository exists. notice ssh is, reason, trying connect github.com.<company>.<name>.com instead of github.com . i have discovered following suspicious bit in /etc/resolve.conf : # common within <company> lookup hostnames dot in # example '<machine>.<site>'. set 'options ndots:2' such hostnames # tried first <company> search domains appended. without such # queries might ...