How to use BZR over a SSH tunnel via a HTTP proxy
Hi. I have used SSH and bzr quite a lot. I am very happy with bzr. It really helps us out with software version control and is so much better than CVS or subversion. Thanks.
However, one thing is driving me crazy at the moment.
Our bzr server is available on the Internet and I can successfully checkout BZR+SSH repositories on Internet based machines. So all of that is set up OK.
One of our customers has their machine in a split DNS environment with private addresses and a proxy to the internet.
I can connect to our machine using SSH from the internal machine + their HTTP proxy using e.g. Putty or plink and then get to a shell prompt on our machine. (I set up Putty to use a http proxy, with local windows username and password for the proxy authentication in the putty config screen)
I have saved this session from putty and can even type in:
plink -load "machine01"
to load an existing session and log in automatically using pageant stored certificates.
But I cannot get bzr to work via the proxy, or via this tunnel.
Question 1: Is it possible to use paramiko via a HTTP proxy to tunnel to an SSH server?
NB I need read write access to the repository: so https is not good enough.
Question2: I have tried tunneling a local port on the internal machine to the remote SSH machine which listens on port 1022 and connects via the tunnel,
e.g. plink plink.exe -L 1022:localhost:
I can telnet to localhost port 1022 and get an SSH prompt from the remote machine, but BZR will not connect when I try e.g.
bzr checkout bzr+ssh:
I get an error "file not found."
Question 3:Can I tell bzr to run ssh just via invoking e.g. plink with a pre-defined session that contains all of the tunneling information and usernames etc. or via a raw port?
Are there alternatives, like running bzr as a daemon on its own native port on the remote machine and tunneling to that?
Your help appreciated.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- John A Meinel
- Solved:
- Last query:
- Last reply: