RMI / RMI/resources

Fetching and Pushing to github through a firewall

Open
#65 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

git github troubleshoot
Dominant language
No language data
Stars
17
Forks
5
PR merge metrics
No merged PRs in 30d

Description

tl;dr

could be useful for: @2DegreesInvesting/banks

context: while working remotely, I was unable to access my remote repositories (couldn't fetch, clone push etc. to upstream or origin). Initially I thought this was an issue with my git config, so I reset my SSH key, and double checked all my credentials to no avail.

turns out the bank's firewall blocks the ssh protocol entirely, and port 22 was deliberately blocked:
Screenshot (16)

the fix: change your remotes from SSH to HTTPS (aka make sure all your upstreams, origins etc are expressed as https://github.com/username/repo.git instead of git@github.com:username/repo.git).

This can be done manually, for the open repo, by editing the local config:
git config --local -e
and ensuring all urls are in https format.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the issue body and its linked Stack Overflow answer, then inspect how resources are recorded in this repository. Document the firewall-related SSH failure and the HTTPS remote workaround, with the relevant git config command, so the guidance is available to remote contributors.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.