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)
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.
Thanks, I hoped there was a way to redirect the ports so I didn't have to do this.
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.
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
Originally Posted by bigtomrodney
if you're using a *NIX host AS a router, I'm sure it can route that way too.
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?