Difference between revisions of "How to read scientific papers from home"
Line 3: | Line 3: | ||
= Linux = | = Linux = | ||
− | ssh -qTfnN -D 7070 itp.uni-frankfurt.de | + | Make sure you have an openssh client installed, open a terminal and type: |
+ | |||
+ | ssh -qTfnN -D 7070 itp.uni-frankfurt.de | ||
All the added options are for a ssh session that’s used for tunneling. | All the added options are for a ssh session that’s used for tunneling. | ||
− | -q :- be very quite, we are acting only as a tunnel. | + | -q :- be very quite, we are acting only as a tunnel. |
− | -T :- Do not allocate a pseudo tty, we are only acting a tunnel. | + | -T :- Do not allocate a pseudo tty, we are only acting a tunnel. |
− | -f :- move the ssh process to background, as we don’t want to interact with this ssh session directly. | + | -f :- move the ssh process to background, as we don’t want to interact with this ssh session directly. |
− | -N :- Do not execute remote command. | + | -N :- Do not execute remote command. |
− | -n :- redirect standard input to /dev/null. | + | -n :- redirect standard input to /dev/null. |
continue with step 4) of the Windows section (configuring firefox) | continue with step 4) of the Windows section (configuring firefox) |
Revision as of 17:37, 27 November 2008
There is a simple solution for using the universities access to scientific journals to read and download publications from home. In short: you have to tunnel your web traffic through an ssh-session. We will describe setting up this tunnel using the browser "firefox" and openssh (for Linux) or PuTTY (for Windows).
Linux
Make sure you have an openssh client installed, open a terminal and type:
ssh -qTfnN -D 7070 itp.uni-frankfurt.de
All the added options are for a ssh session that’s used for tunneling.
-q :- be very quite, we are acting only as a tunnel. -T :- Do not allocate a pseudo tty, we are only acting a tunnel. -f :- move the ssh process to background, as we don’t want to interact with this ssh session directly. -N :- Do not execute remote command. -n :- redirect standard input to /dev/null.
continue with step 4) of the Windows section (configuring firefox)
Windows
1) Create a new PuTTY session Run PuTTY and create a new session in PuTTY to connect to the remote host. Fill in the hostname: itp.uni-frankfurt.de, the port: 22, make sure SSH is checked, give it a session name and hit Save.
2) Configure a secure tunnel Click on “Tunnels” on the left and set up dynamic fowarding for a local port (e.g. 7070). Under “Add new forwarded port” type in 7070 for the source port, leave the destination blank, and check Auto and Dynamic. Then it the Add button. If you did it correctly, you’ll see D7070 listed in the Forwarded Ports box.
That’s it for tunnels, as there is no need to create more than one. Remember to save your session profile in PuTTY so you don’t have to set up the tunnel next time.
3) Connect to the remote SSH box Double click on the connection profile and type in your username and password when prompted.
4) Configure Firefox Go to Edit, Preferences, Advanced. Click on the Network tab, and then click on Connection Settings
Check Manual Proxy Configuration, leave most of the fields blank, but fill in 127.0.0.1 for the SOCKS Host with a port of 7070 (or whatever you used in Step 2)