Reputation: 861
I would like to connect to my gitlab server from home but I am getting problems. How can I do this?
Computer A <------------> Computer B <-----------------> Computer C (gitlab)
What I have so far:
What I can do:
What I can't do:
git@localhost:3333:my/repo.git
I get the following error: Cloning into 'C:\Users\xxxx\Desktop\EXCHANGE\git-repo'... fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
git did not exit cleanly (exit code 128) (3531 ms @ 5/10/2016 2:53:26 PM)
I load the private rsa key with TortoiseGit previous to the clone call...
Any ideas?
Upvotes: 1
Views: 1575
Reputation: 33993
Set up a putty session and configure a different port (3333) there. This cannot be done in the clone URL. Then use the session name instead of localhost.
Btw. you can also configure the tunnel within this session, so that it gets automatically set up for cloning/fetching/pulling.
See https://stackoverflow.com/a/29183147/3906760
Upvotes: 1