Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
22
rated 0 times [  22] [ 0]  / answers: 1 / hits: 79955  / 3 Years ago, fri, july 23, 2021, 8:04:57

I am behind a network firewall that doesn't let me ssh through the default port. Because of that, I can't push any bzr branches to my repository. I would like to know if it is possible to somehow proxy the ssh through port 80 so I can push the branches.



I heard that corkscrew lets you do that but I am not sure how to do that exactly.



If you know any working proxy server that lets you do that, please do mention them.


More From » ssh

 Answers
6

A good corporate firewall will inspect traffic regardless of port so changing port just might not work.



If you have control over the server, and still want to try it, you can change the sshd port to port 80. Warning If you have something else running on port 80 (on the server) this will not work and will likely mean you completely lose SSH access to the server!



You'll need to edit /etc/ssh/sshd_config and change Port to 80. Then run



sudo restart ssh


And then connect:



ssh user@host -p80


Your bzr path would then look something like: bzr+ssh://host:80/path/






Another method is to use WebDav. This should skirt around the firewall problem completely because it all happens on Port 80 but it will require you to be running Apache and set up a number of things:




  1. Get WebDav installed

  2. Move your branch into the right place

  3. Use the bzr-webdav plugin to connect






A VPN might be an option but if ssh is locked out, I'd expect that to be excluded too.



You might just want to have a word with your network admins. You need to do something and they're stopping you. If they've got a reason for blocking ssh, it's likely they'll view any extreme attempts to circumvent it fairly negatively...



In short, it might just be safer to talk to them.


[#40190] Saturday, July 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ligdesig

Total Points: 164
Total Questions: 106
Total Answers: 114

Location: Japan
Member since Sat, Jun 6, 2020
4 Years ago
;