markyb86
January 10th, 2008, 10:48 AM
HOWTO: Surf remotely using your home computer and IP
This is going to be a two-part process.
First we need to set up the computer you use at home with internet access.
goto http://www.whatismyip.com and write your home ip down. (YOU NEED THIS LATER)
next, create a new user,
System > Administration > Users and Groups
create a new user and give this user a strong password.
Then, open a terminal and run
sudo apt-get install open-ssh
This will install Open ssh.
you need to edit /etc/ssh/sshd_config .
gksudo gedit /etc/ssh/sshd_config
look for Port 22 and change it to Port 443.
(this step is taken because some isps or firewalls block port 22, and this is easier to change then the firewalls settinfgs.)
save, exit and reboot your computer.
and this part is done.
Next you need to set up your computer that is away from home.
If you are using windows
you need to download putty.
at this link.
You will need to configure putty to use your current internet connection/proxy.
On the proxy option on the left when you first open putty,
is where this is. Set it, go back to the sessions page, save the session and exit putty.
open up notepad. copy and paste these lines into the notepad:
putty -D 8080 -P 443 -ssh 0.0.0.0
replace the 0.0.0.0 with the ip address you wrote down earlier, and save the file as ssh.bat, by selecting "all files" at the bottom of the save as window, and save it in the same folder you downloaded putty to. close notepad.
When you double click the ssh.bat file it should connect to your home computer and ask for your user name. this is good. log in and then minimize the terminal window. your almost done.
open up your web browser, chat program, anything that you need to use that was blocked. and
goto where you can set your proxy settings. (in firefox this is Edit > Preferences > Advanced >
Connections, or Tools > Options > Advanced > Connections.) Set the SOCKS5 proxy to 127.0.0.1 port 8080 and make sure all the other fields are blank.
hit ok and get out of the settings window, and you should be as free as a downloaded linux iso!!
If you are using linux
you are going to open a terminal and type the following:
ssh -D 8080 -p 443 -l username 0.0.0.0
remember to replace the 0.0.0.0 with your ip address that you wrote down earlier, and username with the username we created at the beginning.
proceed to log in.
when you are at the default shell prompt, you can run any application from your home computer just by typing its command. for instance typing in firefox, will open firefox as if it were running on your computer natively.
Troubleshooting
Firstly if you get no connection at all, try using port 80 where i specified port 443. you will have to change that number in the command you use to connect as well.
If you have no internet access at all, where you are at, this will not work either.
on your home computer make sure you are editing sshd_config and not ssh_config
This is going to be a two-part process.
First we need to set up the computer you use at home with internet access.
goto http://www.whatismyip.com and write your home ip down. (YOU NEED THIS LATER)
next, create a new user,
System > Administration > Users and Groups
create a new user and give this user a strong password.
Then, open a terminal and run
sudo apt-get install open-ssh
This will install Open ssh.
you need to edit /etc/ssh/sshd_config .
gksudo gedit /etc/ssh/sshd_config
look for Port 22 and change it to Port 443.
(this step is taken because some isps or firewalls block port 22, and this is easier to change then the firewalls settinfgs.)
save, exit and reboot your computer.
and this part is done.
Next you need to set up your computer that is away from home.
If you are using windows
you need to download putty.
at this link.
You will need to configure putty to use your current internet connection/proxy.
On the proxy option on the left when you first open putty,
is where this is. Set it, go back to the sessions page, save the session and exit putty.
open up notepad. copy and paste these lines into the notepad:
putty -D 8080 -P 443 -ssh 0.0.0.0
replace the 0.0.0.0 with the ip address you wrote down earlier, and save the file as ssh.bat, by selecting "all files" at the bottom of the save as window, and save it in the same folder you downloaded putty to. close notepad.
When you double click the ssh.bat file it should connect to your home computer and ask for your user name. this is good. log in and then minimize the terminal window. your almost done.
open up your web browser, chat program, anything that you need to use that was blocked. and
goto where you can set your proxy settings. (in firefox this is Edit > Preferences > Advanced >
Connections, or Tools > Options > Advanced > Connections.) Set the SOCKS5 proxy to 127.0.0.1 port 8080 and make sure all the other fields are blank.
hit ok and get out of the settings window, and you should be as free as a downloaded linux iso!!
If you are using linux
you are going to open a terminal and type the following:
ssh -D 8080 -p 443 -l username 0.0.0.0
remember to replace the 0.0.0.0 with your ip address that you wrote down earlier, and username with the username we created at the beginning.
proceed to log in.
when you are at the default shell prompt, you can run any application from your home computer just by typing its command. for instance typing in firefox, will open firefox as if it were running on your computer natively.
Troubleshooting
Firstly if you get no connection at all, try using port 80 where i specified port 443. you will have to change that number in the command you use to connect as well.
If you have no internet access at all, where you are at, this will not work either.
on your home computer make sure you are editing sshd_config and not ssh_config