how to setup two factor?

You'll need to register your device with Duo to recieve security codes, and can receive these codes by phone call, text message, or Duomobile app.

ssh $username@duo-test.sbgrid.org Password: [input password] Please enroll at $url

Copy the url into a web browser, and follow the prompts to register. Please contact us at help@sbgrid.org if you encounter problems.

Configuring Options in SSH configuration

Set DUO_PASSCODE environmental variable to push (Duo mobile app), call (SMS) or phone (phone call) in ~/.bashrc, ~/.cshrc, or ~/.zshrc.

Host xtal200 Hostname xtal200.harvard.edu SendEnv DUO_PASSCODE



`` user@system:~/$ ssh user0@duo-test.sbgrid.org Duo two-factor login for user0

Enter a passcode or select one of the following options:

  1. Duo Push to XXX-XXX-1234
  2. Phone call to XXX-XXX-1234
  3. SMS passcodes to XXX-XXX-1234

Passcode or option (1-3): 1

Pushed a login request to your device… Success. Logging you in… _______________ / Welcome to xtal200.harvard.edu user0.
\ You have landed on ssh-duo0. / —————————————
\ /
( ) .( o ). ===================================================

  • OS X Software Installer is available for download.
  • Visit our wiki for more information: https://sbgrid.org/wiki/client_install
  • Please support SBGrid by citing the Consortium manuscript:
  • eLife 2013;2:e01456, "Collaboration gets the most out of software".
  • X-ray diffraction datasets should be deposited with SBGrid Data Bank
  • http://data.sbgrid.org/.


  • We recommend using ssh keys https://sbgrid.org/corewiki/faq-setting-up-key-based-ssh
  • Remote access FAQ at https://sbgrid.org/corewiki/faqs-remote

    Email help@sbgrid.org for assistance, questions, or feedback.



These commands are non-interactive, so there is not analogous menu for push/call/sms - if the DUO_PASSCODE environmental method isn't set, this will use your default method.