GitHub Blocking AWS IP Addresses

GitHub is blocking me from accessing either HTTPS or SSL endpoints from the 54.213.. IP address block which is used by EC2 at AWS. This is preventing my production and development machines which are virtually hosted from accessing my source code.

# time git pull
ssh: connect to host port 22: Connection timed out
fatal: The remote end hung up unexpectedly

real 1m3.685s
user 0m0.028s
sys 0m0.079s

Testing SSL and HTTPS connectivity both time out from these servers but work from my local machines and from other IP address blocks at AWS.

# ssh -T
# curl -I

I have contacted support as well.

For some reason was hard-coded in /etc/hosts.

I think that this was an old practice to prevent the system from adding many hosts to the known hosts file and prompting for permission every time.

Dropping the link to the other request here as it might help someone else. Thanks for updating this post @fletc3her!