Difference between revisions of "How to read scientific papers from home"

From IT Service Wiki
Jump to: navigation, search
Line 1: Line 1:
 
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).
 
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 =  
+
== Linux ==
  
 
Make sure you have an openssh client installed, open a terminal and type:
 
Make sure you have an openssh client installed, open a terminal and type:
Line 17: Line 17:
 
continue with step 4) of the Windows section (configuring firefox)
 
continue with step 4) of the Windows section (configuring firefox)
  
= Windows =
+
== Windows ==
  
  
'''1) Create a new PuTTY session'''
+
=== 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.
 
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.
Line 27: Line 27:
  
  
'''2) Configure a secure tunnel'''
+
=== 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.
 
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.
Line 36: Line 36:
  
  
'''3) Connect to the remote SSH box'''
+
=== Connect to the remote SSH box ===
  
 
Double click on the connection profile and type in your username and password when prompted.
 
Double click on the connection profile and type in your username and password when prompted.
  
  
'''4) Configure Firefox'''
+
=== Configure Firefox ===
  
 
Go to Edit, Preferences, Advanced. Click on the Network tab, and then click on Connection Settings:
 
Go to Edit, Preferences, Advanced. Click on the Network tab, and then click on Connection Settings:
Line 49: Line 49:
  
  
'''5) Surf the web using Firefox'''
+
=== Surf the web using Firefox ===
  
 
Since all the web-traffic is tunneled through the ssh-session, the journal web-pages will grant you access to their journals. If for some reason your ssh-session should be interrupted (e.g. if you close this session), you will not be able to surf the web using the firefox browser until you either open up a new ssh-session, or you undo your changes in firefox's preferences.
 
Since all the web-traffic is tunneled through the ssh-session, the journal web-pages will grant you access to their journals. If for some reason your ssh-session should be interrupted (e.g. if you close this session), you will not be able to surf the web using the firefox browser until you either open up a new ssh-session, or you undo your changes in firefox's preferences.

Revision as of 11:01, 28 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

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.

Putty-session.gif


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.

Putty-tunnels.gif

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.


Connect to the remote SSH box

Double click on the connection profile and type in your username and password when prompted.


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):

Firefox preferences.jpg Firefox tunnels.jpg


Surf the web using Firefox

Since all the web-traffic is tunneled through the ssh-session, the journal web-pages will grant you access to their journals. If for some reason your ssh-session should be interrupted (e.g. if you close this session), you will not be able to surf the web using the firefox browser until you either open up a new ssh-session, or you undo your changes in firefox's preferences.