CernLxplus: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
=== How to connect without password to lxplus === | === How to connect without password to lxplus === | ||
* The CERN wiki page is [http://linux.web.cern.ch/linux/docs/kerberos-access.shtml here] | * The CERN wiki page is [http://linux.web.cern.ch/linux/docs/kerberos-access.shtml here] | ||
* | * Install the necessary software: | ||
<pre>ubuntu: sudo apt-get install krb5-user | |||
fedora: sudo dnf install krb5-workstation krb5-libs</pre> | |||
:* Copy to '''/etc/krb5.conf''' the config file taken from CERN [http://linux.web.cern.ch/linux/docs/krb5.conf here]. | :* Copy to '''/etc/krb5.conf''' the config file taken from CERN [http://linux.web.cern.ch/linux/docs/krb5.conf here]. | ||
:* Do a '''kinit''' . It should ask you for you CERN password, specifying yourlogin@CERN.CH. If this is wrong, specify it yourself with '''kinit yourlogin@CERN.CH''' | :* Do a '''kinit''' . It should ask you for you CERN password, specifying yourlogin@CERN.CH. If this is wrong, specify it yourself with '''kinit yourlogin@CERN.CH''' | ||
Line 12: | Line 11: | ||
:* Connect to lxplus using the following ssh options (replace ''MYLOGIN'' with the CERN login): | :* Connect to lxplus using the following ssh options (replace ''MYLOGIN'' with the CERN login): | ||
ssh -2 -oGSSAPIAuthentication=yes -oGSSAPIDelegateCredentials=yes -oGSSAPITrustDNS=yes -l MYLOGIN lxplus.cern.ch | ssh -2 -oGSSAPIAuthentication=yes -oGSSAPIDelegateCredentials=yes -oGSSAPITrustDNS=yes -l MYLOGIN lxplus.cern.ch | ||
<br> <br> | |||
* From the UIs, you should simply do: | |||
<pre> | |||
kinit | |||
ssh -2 -oGSSAPIAuthentication=yes -oGSSAPIDelegateCredentials=yes -oGSSAPITrustDNS=yes -oStrictHostKeyChecking=no -l $USER $(nslookup lxplus.cern.ch|grep Address|sed -n 2,2p|awk -F':' '{print $2}') | |||
</pre> | |||
=== How to copy data from disk (eg. beo5) to you space at lxplus? === | === How to copy data from disk (eg. beo5) to you space at lxplus? === |
Latest revision as of 09:39, 22 February 2023
How to connect without password to lxplus
- The CERN wiki page is here
- Install the necessary software:
ubuntu: sudo apt-get install krb5-user fedora: sudo dnf install krb5-workstation krb5-libs
- Copy to /etc/krb5.conf the config file taken from CERN here.
- Do a kinit . It should ask you for you CERN password, specifying yourlogin@CERN.CH. If this is wrong, specify it yourself with kinit yourlogin@CERN.CH
- This should give you a valid kerberos ticket lasting 25h, meaning you will be able to connect passwordlessly to lxplus as long as the kerberos ticket is valid.
- To check if this worked, do a klist -f. Check the Flags, there should be an F, meaning you will have access to your /afs space.
- Connect to lxplus using the following ssh options (replace MYLOGIN with the CERN login):
ssh -2 -oGSSAPIAuthentication=yes -oGSSAPIDelegateCredentials=yes -oGSSAPITrustDNS=yes -l MYLOGIN lxplus.cern.ch
- From the UIs, you should simply do:
kinit ssh -2 -oGSSAPIAuthentication=yes -oGSSAPIDelegateCredentials=yes -oGSSAPITrustDNS=yes -oStrictHostKeyChecking=no -l $USER $(nslookup lxplus.cern.ch|grep Address|sed -n 2,2p|awk -F':' '{print $2}')
How to copy data from disk (eg. beo5) to you space at lxplus?
Use secure copy: scp
scp 'uname'@lxpub3.iihe.ac.be:/beo5/somefile 'uname'@lxplus.cern.ch:/afs/cern.ch/user/m/me
How to print from lxplus when you're in building 40
Command to print
lpr -P 40-4B-COR ....