Skip to content

Sherlock

Sur Herrera Paredes edited this page Dec 13, 2018 · 1 revision

Saving time when connecting to sherlock

It is a good idea to set the ControlPersist option so that you only need to do 2FA once per session. Just edit your ~/.ssh/config file in the computer you use to connect to sherlock. If the file does not exist already, create it, if it does exist, add the following section:

Host sher2 sherlock2 login.sherlock.stanford.edu
 HostName                  login.sherlock.stanford.edu
 User                      <YOURSUNETIDHERE>
 ForwardX11                yes                                                                                                                                                                                   
 ForwardAgent              yes
 GSSAPIAuthentication      yes
 GSSAPIDelegateCredentials yes
 ControlMaster             auto
 ControlPath               ~/.ssh/%r@%h:%p
 ControlPersist            yes
Clone this wiki locally