Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisione Revisione precedente | |||
vlsi:projects:cms [25/11/2013 22:16] pacher |
vlsi:projects:cms [26/11/2013 00:47] (versione attuale) pacher |
||
---|---|---|---|
Linea 89: | Linea 89: | ||
- | |||
- | |||
- | |||
- | |||
- | ====== Instructions for tunnelling ====== | ||
- | |||
- | Follow these instructions to access your CERN computing account on //cmstotk03.cern.ch// | ||
- | or //cmstkto01.cern.ch// machines using an ssh tunnel through the //lxplus.cern.ch// cluster. | ||
- | |||
- | To setup the tunnel, open a terminal and type | ||
- | |||
- | |||
- | <code> | ||
- | ssh -L 7020:cmstotk03.cern.ch:22 username@lxplus.cern.ch [cat -] | ||
- | </code> | ||
- | |||
- | or | ||
- | |||
- | <code> | ||
- | ssh -l username -L 7020:cmstotk03.cern.ch:22 lxplus.cern.ch [cat -] | ||
- | </code> | ||
- | |||
- | \\ | ||
- | Safe choices for the port number are 7020, 7021, etc. | ||
- | If you use the ''cat -'' option the shell will simply hangs and | ||
- | you will not login into the lxplus cluster. A wise thing to do is to create | ||
- | an alias for the command (e.g. ''lxtunnel'') in your home ''.cshrc'' or ''.bashrc'' file: | ||
- | |||
- | <code> | ||
- | alias lxtunnel 'ssh -L 7020:cmstotk03.cern.ch:22 username@lxplus.cern.ch' # csh/tcsh | ||
- | alias lxtunnel='ssh -L 7020:cmstotk03.cern.ch:22 username@lxplus.cern.ch' # sh/bash | ||
- | </code> | ||
- | |||
- | \\ | ||
- | To connect to the machine open a new shell and run the command: | ||
- | |||
- | <code> | ||
- | ssh -p 7020 username@localhost | ||
- | </code> | ||
- | |||
- | \\ | ||
- | Alternatively, //**NX server**// is installed on //cmstotk03.cern.ch// and you | ||
- | can setup a **remote desktop access** through the ssh tunnel using //**NX client**//. | ||
- | [[http://www.nomachine.com/documents/configuration/client-guide.php|Configure a new NX client session]] | ||
- | by setting the **Host** to //localhost// and **Port** to the tunnel port (7020 in the above example). | ||
- | Be aware that the tunnel must already be running prior to connecting the NX session. | ||
- | |||
- | \\ | ||
- | Remote file transfers between the remote machine and your local system can be performed using: | ||
- | |||
- | <code> | ||
- | scp -P 7020 username@localhost:~/path/to/file . | ||
- | </code> | ||
- | |||
- | or | ||
- | |||
- | <code> | ||
- | scp -P 7020 /path/to/local/file username@localhost:~/path/to/destination | ||
- | </code> | ||
- | |||
- | |||
- | See also \\ | ||
- | [[http://www.cs.wcupa.edu/~rkline/linux/ssh-remote.html]] | ||
- | |||
- | \\ | ||
- | :!: //**Note**// \\ | ||
- | The //**NX server**// is installed **only** on //cmstotk03.cern.ch// and is an evaluation version, | ||
- | thus no more than two users can perform a remote desktop access at the same time. | ||