LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is it possible to browse over ssh from home using my school server? (https://www.linuxquestions.org/questions/linux-newbie-8/is-it-possible-to-browse-over-ssh-from-home-using-my-school-server-626885/)

thefountainhead100 03-09-2008 08:36 PM

Is it possible to browse over ssh from home using my school server?
 
Hi

Am trying to browse the internet using my school server from home. Am using UBUNTU Gutsy. I know its possible to do it through ssh. I have been trying to find a tutorial that would tell me how to do it but the ones I tried do not work out right.

So if anybody could give some brief instructions as to how to do it (browse the net using school server from home) then it would be great. Or at least a link to the right site...
I am able to ssh into the school server.

Thanks for your time.

Ash

jtshaw 03-09-2008 09:10 PM

What you want to do is called SSH Tunneling. To start up the tunnel you log into the box with the -D option. For example, if you want to tunnel all traffic to port 1080 on your local computer to your schools server you could do so by doing "ssh -D 1080 user@server". If you do a netstat (on your home ubuntu computer) you should see that sshd is listening on port 1080 now.

In order to browse the web through that connection open your web browser and set it up to use localhost:1080 as a SOCKS4 proxy. It will now connect through the remote server for all connections.

felixc 03-09-2008 09:17 PM

Another way to go about it, if you're willing to forego the luxuries of graphics on websites, is to simply use a text-based browser (such as lynx) over SSH. Connect to your school server and try running lynx or www-browser, and see if anything is set up.

Sure, it may seem a little old-fashioned, but it works well for a lot of sites out there.


All times are GMT -5. The time now is 12:30 PM.