Results 1 to 6 of 6
I want to SSH to my server on the internet, but my proxy I'm behind only accepts secure connections from port 443. How do I trick my proxy that I'm ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-27-2008 #1Just Joined!
- Join Date
- Aug 2005
- Location
- South West England
- Posts
- 91
SSH Tunneling?
I want to SSH to my server on the internet, but my proxy I'm behind only accepts secure connections from port 443. How do I trick my proxy that I'm actually sending on port 443 when I want to get to my server on port 22? If this is not possible, how do I set up my server to accept connections from port 443 as well as 22?
I'm thinking like a -L or a -R option in SSH? (I'm using PuTTY, but the concept is the same)
- 08-27-2008 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
You can simply switch your ssh port to 443 in /etc/ssh/sshd_config and then restart sshd. If you want to run on both ports, I haven't done it myself but a quick goodle revealed this :-
Tutorial: SSH To Alternate Ports and Enabling Multiple SSH Daemons | MacResearch
I hope that helps.
- 08-29-2008 #3Just Joined!
- Join Date
- Aug 2005
- Location
- South West England
- Posts
- 91
Thanks, I hoped there was a way to redirect the ports so I didn't have to do this.
- 08-29-2008 #4Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Have you looked at port forwarding on your router? You might be able to direct several ports into port 22. To be honest I'm sure it can be done but I haven't done it myself.
- 09-04-2008 #5Just Joined!
- Join Date
- Aug 2008
- Location
- Seattle, WA
- Posts
- 46
I know for a fact Apple hardware can do it and I imagine dd-wrt can, but I'd bet its fairly uncommon because everyone I've spoke to scratched their heads when I told them I forwarded port xxxx to .10:22
if you're using a *NIX host AS a router, I'm sure it can route that way too.
- 09-06-2008 #6Just Joined!
- Join Date
- Aug 2005
- Location
- South West England
- Posts
- 91
I sorted it out and made it listen to 443... I had no router on the remote host...
My question now is, now that I've done ssh (remote_host) -R :80:localhost:80
My local apache2 logs show up as localhost regardless of who connected to (remote_host), how do I make them show up as the originating host?


Reply With Quote

