ssh username@centos7.slac.stanford.edu
and then ssh mcclogin
.ssh-keygen -t rsa
and hit enter 3 times.We recommend using the fastx browser interface:
Then:
>>ssh mcclogin
>>ssh fphysics@facet-srv01
>>facethome
If you don't care about profiles and would like to skip profile selection, use this command in step 4:
ssh fphysics@facet-srv01 -t /bin/bash |
if you get asked for a password after step 4, you either don't have working ssh keys (see previous paragraph), or you don't have access to the AFS filesystem. In the latter case, check the output of:
klist |
if it is empty, run:
kinit && aklog |
and confirm that klist output now contains your token(s).
For more info, check https://confluence.slac.stanford.edu/display/SCSPub/SSH
If you have passwordless ssh set up, this is pretty easy to use. They let you do some basic things on facet-srv01 without having to go through all these login steps
To run arbitrary commands on facet-srv01:
ssh -t USER@centos7.slac.stanford.edu ssh -t USER@mcclogin ssh -t fphysics@facet-srv01 COMMAND
(Replace USER and 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@$centos7.slac.stanford.edu:~/transferStaging/ ~/transfer
(Replace USER and PATHTOFILE, mkdir ~/transferStaging on centos7 and mkdir ~/transfer on your local machine first)
You can also set these up as BASH functions in your .zshrc (or whatever)
If you would like to ssh or scp into mcclogin with one command, you can add the following lines to your
~/.ssh/config
Host centos7
HostName centos7.slac.stanford.edu
HostKeyAlgorithms=+ssh-dss
User yourusername
Host mcclogin
HostName mcclogin
User yourusername
HostKeyAlgorithms=+ssh-dss
ProxyCommand ssh -YW %h:%p centos7