User Tools

Site Tools


institute_lorentz:institutelorentz_remoteaccess

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
institute_lorentz:institutelorentz_remoteaccess [2020/03/10 11:56] – [Example 3] lenocilinstitute_lorentz:institutelorentz_remoteaccess [2020/03/10 14:05] – [Example 2] jansen
Line 28: Line 28:
 <code> <code>
 Host asselijn.lorentz.leidenuniv.nl asselijn Host asselijn.lorentz.leidenuniv.nl asselijn
-ProxyCommand /usr/bin/ssh -W %h:%p ssh.lorentz.leidenuniv.nl+     ProxyCommand /usr/bin/ssh -W %h:%p ssh.lorentz.leidenuniv.nl
 </code> </code>
 And if you have a different username locally and on the institute desktops, that can be added like this: And if you have a different username locally and on the institute desktops, that can be added like this:
 <code> <code>
 Host asselijn.lorentz.leidenuniv.nl asselijn Host asselijn.lorentz.leidenuniv.nl asselijn
-ProxyCommand /usr/bin/ssh -W %h:%p username@ssh.lorentz.leidenuniv.nl +     ProxyCommand /usr/bin/ssh -W %h:%p username@ssh.lorentz.leidenuniv.nl 
-User username+    User username
 </code> </code>
 If you need access to multiple hosts, just copy and edit the example above. If you need access to multiple hosts, just copy and edit the example above.
 +
 +Once this configuration is in place, a simple ''ssh asselijn'' will get you to the machine you have configured.
  
 ==== Example 3 ==== ==== Example 3 ====
  
-:!: Users are encouraged to use [[https://marishead.lorentz.leidenuniv.nl:4433/|maris]] OoD interface to launch jupyter notebook.+:!: Users are encouraged to use [[https://marishead.lorentz.leidenuniv.nl:4433/|maris OoD interface]] to launch jupyter notebook.
  
 You sit in your office at the IL and have started a jupyter notebook on marisXX port YYYY. To connect to your notebook using the browser on your workstation you must tunnel through `marishead'. Edit your local .ssh/config You sit in your office at the IL and have started a jupyter notebook on marisXX port YYYY. To connect to your notebook using the browser on your workstation you must tunnel through `marishead'. Edit your local .ssh/config
Line 60: Line 62:
  
 ==== Example 4 ==== ==== Example 4 ====
 +:!: Users are encouraged to use [[https://marishead.lorentz.leidenuniv.nl:4433/|maris OoD interface]] to launch jupyter notebook.
 +
 +
 Same situation as in Example 3 but this time you sit behind your laptop at home. Same situation as in Example 3 but this time you sit behind your laptop at home.
  
Line 83: Line 88:
  
 ==== Example 5: Using Putty ==== ==== Example 5: Using Putty ====
 +
 +:!: In the snapshots that follow, please replace all occurrences of ''novamaris'' with ''marishead''.
 +
 You will need to open two putty sessions. The first one opens a tunnel, the second one uses it. For the sake of clarity let us call the first session `Tunnel' and the second one `Tunnel_use'. In this example we will establish a connection to the Maris headnode ''novamaris'' through an ssh tunnel on ''ssh.lorentz.leidenuniv.nl'' You will need to open two putty sessions. The first one opens a tunnel, the second one uses it. For the sake of clarity let us call the first session `Tunnel' and the second one `Tunnel_use'. In this example we will establish a connection to the Maris headnode ''novamaris'' through an ssh tunnel on ''ssh.lorentz.leidenuniv.nl''
 === Session 1: Tunnel === === Session 1: Tunnel ===
institute_lorentz/institutelorentz_remoteaccess.txt · Last modified: 2022/11/29 12:27 by lenocil