EN
Try BebraTry Bebra

Using GitHub through a VPN

Updated

On most networks GitHub works without a VPN. Bebra VPN is for the ones that filter it. Once it’s on, the whole computer goes through it, from the browser to git in your terminal.

When GitHub won’t load

Office, campus and hotel networks

Some of them block GitHub with a filter. With Bebra VPN on, your traffic leaves through a server in another country inside an encrypted connection. On a work network, check your company’s rules first, as not every employer allows a VPN.

The site loads, but git over SSH doesn’t

That usually means the network has closed port 22. GitHub offers a way round it with no VPN at all, because SSH also works over port 443 at ssh.github.com. In ~/.ssh/config, give Host github.com the lines HostName ssh.github.com, Port 443 and User git.

If GitHub is down for everyone, githubstatus.com will say so. During an outage on GitHub’s side, switching countries in Bebra VPN won’t help.

What goes through the VPN on a computer

The apps for Windows, macOS and Linux turn on the VPN for the whole system. Your browser, git, npm, pip and Homebrew all use the server in the country you pick, and you don’t need to set up any of them separately.

Homebrew keeps its packages in GitHub Packages, the electron package for npm fetches its files from GitHub releases, and pip can install straight from a repository. On a network that blocks GitHub, those installs stall as well.

If a site you need for work refuses foreign IP addresses, open Tunnel, switch to Manual and list its domain there. Requests to that site skip the VPN, while GitHub keeps using it.

To give a home server or NAS the same route, install Bebra VPN on a Keenetic, OpenWrt or MikroTik router, and your whole home network will use the VPN. The router app works with an email-based account and an active subscription.

Bebra VPN on a Mac: the Split tunneling window with Manual selected and a list of addresses

Where a VPN makes no difference

Trade controls. GitHub restricts some of its services in regions under US trade controls and for people on US sanctions lists, and under export rules Copilot isn’t sold or supplied to a list of countries. An address in another country doesn’t lift any of this, and GitHub’s terms forbid using the service in breach of export controls and sanctions.

Payouts and payments. GitHub Sponsors pays out only to people who live in supported regions, and a card payment is approved or declined on the card’s own details. Neither depends on your IP address.

Speed. Where GitHub loads fine without a VPN, it won’t get faster with one, because the data takes a detour through the Bebra VPN server. On a network like that, big releases are best downloaded with the VPN off.

Subscribe to Bebra VPN

Try Bebra for 10 ₽

3 days of full access.

GitHub and VPN questions

Do I need a VPN to use GitHub?

Usually not. The site, raw files and release downloads open directly on most networks. A VPN helps when the network you’re on filters GitHub, and it can’t help when GitHub itself is down.

Why does GitHub say “API rate limit exceeded”?

Without signing in, GitHub counts API requests per IP address and allows 60 an hour, and since May 2025 it has also tightened limits on anonymous cloning. Sign in or use a personal access token, and your account’s limit of 5,000 requests an hour applies instead.

Which country works best with GitHub?

One close to you from Countries with the highest speed. Type it into Search and tap the tile, or tap Fastest to connect to the server with the best ping.

GitHub sent me a sign-in verification code. Is the VPN to blame?

GitHub asks for that check when someone signs in from a new device or browser on an account without two-factor authentication. Its help pages don’t mention a check triggered by a change of IP address.