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

From IT Service Wiki
Jump to: navigation, search
m
 
(11 intermediate revisions by 2 users not shown)
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). (The article is based on this [http://thinkhole.org/wp/2006/05/10/howto-secure-firefox-and-im-with-putty/ blog entry ]).
  
= 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 9: Line 9:
 
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.
+
  -D :- forward port 7070 to itp.uni-frankfurt.de
 +
   -q :- be very quiet, 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.
Line 17: Line 18:
 
continue with step 4) of the Windows section (configuring firefox)
 
continue with step 4) of the Windows section (configuring firefox)
  
= Windows =
+
== Windows ==
 +
 
 +
 
 +
=== Create a new PuTTY session ===
  
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.
 
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
+
[[Image: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.
 
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.
 +
 +
[[Image: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.
 
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
+
 
 +
=== 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
 
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)
+
=== 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):
 +
 
 +
[[Image:Firefox_preferences.jpg]] [[Image: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.

Latest revision as of 13:55, 12 January 2010

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). (The article is based on this blog entry ).

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.

 -D :- forward port 7070 to itp.uni-frankfurt.de
 -q :- be very quiet, 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.