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:57] – [Example 4] 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 ====
Line 86: 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