...
To run arbitrary commands on facet-srv01:
ssh -t USER@centos7.slac.stanford.edu ssh -t USER@mcclogin ssh -t fphysics@facet-srv01 COMMAND
...
To transfer files from facet-srv01 to your local machine (leaves a copy on RHEL):
ssh -t USER@centos7.slac.stanford.edu -t ssh USER@mcclogin “scp fphysics@facet-srv01:PATHTOFILE ~/transferStaging”; rsync -rP USER@$centos7USER@$centos7.slac.stanford.edu:~/transferStaging/ ~/transfer
...
If you would like to ssh or scp into mcclogin with one command, you can add the following lines to your
~/.ssh/config
Host iriscentos7
HostName iriscentos7.slac.stanford.edu
HostKeyAlgorithms=+ssh-dss
User yourusername
Host mcclogin
HostName mcclogin
User yourusername
HostKeyAlgorithms=+ssh-dss
ProxyCommand ssh -YW %h:%p iriscentos7