Working on two different Git Organization repos using two different credentials in proxy mode

71 views Asked by At

Guys i really need to sort things up, as i am working with two different organizations with two github accounts. I want to work in both of them independently without mixing the two id's. I found the answer here, which works fine.

But now the issue is i am working on a linux system where i am behind a proxy server. So i have to use corkscrew to use ssh on my system.

I've already added this line to ~./ssh/config:

Host * ProxyCommand corkscrew <proxy ip address> 8080 %h %p

Now i am confused to follow the link i've mentioned as it works for ideal condition.

I am really stucked here. Please can somebody help in this one. Thanks

1

There are 1 answers

0
VonC On BEST ANSWER

The example you mention uses the default port (22).
If you are using corkscrew, it is likely that all ports are blocked but 80 and 443 (http and https).

So you need to add the right Port 443 to your ~/.ssh/config, as illustrated in this answer.