Skip to content

Instantly share code, notes, and snippets.

@admorris
Created June 28, 2016 09:39
Show Gist options
  • Save admorris/87589c4cc4bffedfaaddffaf5babdd90 to your computer and use it in GitHub Desktop.
Save admorris/87589c4cc4bffedfaaddffaf5babdd90 to your computer and use it in GitHub Desktop.
Quick remote access to the LHCb machines
# 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'
# 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