Created
June 28, 2016 09:39
-
-
Save admorris/87589c4cc4bffedfaaddffaf5babdd90 to your computer and use it in GitHub Desktop.
Quick remote access to the LHCb machines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Executes the first argument as a command on a ui node and keeps an interactive bash session once it closes | |
function lhcbui() | |
{ | |
ssh ui.lhcb -t "bash -ic \"$1;bash\"" | |
} | |
alias presenter='lhcbui /group/online/scripts/presenter' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recommend setting up certificates on lxplus for lbgw, and on lbgw for the other LHCb machines | |
Host lbgw.cern.ch | |
User username | |
ForwardX11 yes | |
ForwardX11Trusted yes | |
ServerAliveInterval 60 | |
ProxyCommand ssh lxplus.cern.ch -a -q -W lbgw:22 | |
Host *.lhcb | |
User username | |
ForwardX11 yes | |
ForwardX11Trusted yes | |
ServerAliveInterval 60 | |
ProxyCommand ssh lbgw.cern.ch -a -q -W $(echo %h | sed -e s/[\.].*//):22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment