LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SSH via HTTP Authenticated Proxy (https://www.linuxquestions.org/questions/linux-networking-3/ssh-via-http-authenticated-proxy-630402/)

wag2639 03-25-2008 02:53 AM

SSH via HTTP Authenticated Proxy
 
I want to connect to my proxy server perferably over a web interface to login and authenticate my connection. Once I've been authenticated, I want to be able to connect to our servers via SSH through the proxy server. It would be convient if I could remap the ports as well, ie. in to proxy on port 6622 and out to server A on port 22 while port 6623 is for server B on port 22.

I manage a couple of servers for my company but they have a firewall that restricts SSH (port 22) access by IP address. That's not a problem when I'm in the office, but I commute between 2 homes (dorm and actual home) and I use random IP addresses while at school. I'd like to be able setup a linux server in my office, to be a proxy server that I can connect to, let it confirm that I'm an authorized user, and then let me use it as an SSH proxy server.

Any ideas, thanks.

mahmoud 03-25-2008 12:26 PM

try installing webmin it is quite helpful and its a web interface

Findus 03-25-2008 01:24 PM

If I understood you correctly you can do exactly what you said you wanted, just the way you described. Setup a server with ssh in your office and ssh into that box. Then you could issue a new ssh command from within the server, to connect to the computer you actually wanted to get to.

I hope this was of some help

- Findus

wag2639 03-25-2008 11:10 PM

Sorry, I wasn't very clear. After I initially login to the proxy server, I'd like to be able to use it as a transperent proxy that also remaps the ports I want conneted.

here's a better illustration.
I've got my laptop L
Got the proxy server P
And firewalled servers S and R

I'd like to talk to P from L, authenticate myself as a valid user, and then connect to S and R through P as though I was connecting directly to them, though via different ports.

I know I could set up a server in my office, ssh into that, and use that to ssh into the others, but my goal is to connect to web servers. Copying files back and forth between the "proxy" server can be quite tedious.

Thanks for the suggestions though.


All times are GMT -5. The time now is 12:39 AM.