git fetch after ssh login to shell?

I've logged into my production server via SSH in windows power shell, and surprisingly I can execute a lot of git commands successfully, but not git fetch or git pull. If i try to run git fetch in the shell I've ssh 'd into it just hangs indefinably.

If i log into the server directly under the same user i'm logging in with via ssh i can git fetch and git pull just fine. Any idea what this could be?

The user i'm logging into the server with is an admin for now, and the repo i'm trying to fetch is a private repo on github.

Update

After a day of spelunking i've come accross debug setup:

set -x; GIT_TRACE=2 GIT_CURL_VERBOSE=2 GIT_TRACE_PERFORMANCE=2 GIT_TRACE_PACK_ACCESS=2 GIT_TRACE_PACKET=2 GIT_TRACE_PACKFILE=2 GIT_TRACE_SETUP=2 GIT_TRACE_SHALLOW=2 git pull origin master -v -v; set +x

found here

I'm getting the following output when trying to pull from the remote:

>git pull origin master

* Couldn't find host github.com in the _netrc file; using defaults
*   Trying 192.30.255.113...
* TCP_NODELAY set
* Connected to github.com (192.30.255.113) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: businessCategory=Private Organization; jurisdictionC=US; jurisdictionST=Delaware; serialNumber=5157550; C=US
; ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com
*  start date: May  8 00:00:00 2018 GMT
*  expire date: Jun  3 12:00:00 2020 GMT
*  subjectAltName: host "github.com" matched cert's "github.com"
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 Extended Validation Server CA
*  SSL certificate verify ok.
> GET /****/ETLApp.git/info/refs?service=git-upload-pack HTTP/1.1
Host: github.com
User-Agent: git/2.19.1.windows.1
Accept: */*
Accept-Encoding: deflate, gzip
Pragma: no-cache

< HTTP/1.1 401 Authorization Required
< Server: GitHub Babel 2.0
< Content-Type: text/plain
< Content-Length: 21
< WWW-Authenticate: Basic realm="GitHub"
< X-GitHub-Request-Id: B24E:66BA:375689B:5435475:5BEA0E99
< X-Frame-Options: DENY
<
* Connection #0 to host github.com left intact

It looks like there is some sort of authentication on github that fails when i'm calling pull from the remote shell instead of logging into the server manually? Any ideas how to circumvent this?