Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Two-factor Authentication for SSH

Two-factor Authentication for SSH

Introduction to Duo Security's two-factor authentication for SSH presented to Northeast Wisconsin Linux User Group on September 13th, 2012.

Avatar for Mathew Peterson

Mathew Peterson

September 13, 2012
Tweet

More Decks by Mathew Peterson

Other Decks in Technology

Transcript

  1. whoami Mathew Peterson 22 years old, father of 2. PHP

    developer over 6 years Work at Challama.com as a devop Linux Administrator
  2. But passwords are cool ...mmmkay? Private things require a username

    and password Passwords suck. stolen / cracked / phished / guessed / bought / keylogged / sniffed / captured / leaked
  3. SSH But, I use SSH keys! They store private keys

    with out passphrase They store them in stupid places Some admins do not turn off plain password login
  4. Duo: Security Free (up to 10 users) Easy to set

    up http:/ /www.duosecurity.com
  5. What do I need to do? Download & compile open

    source program Input your keys and api hostname Add “ForceCommand” to sshd_conf Enroll your device Profit
  6. make && make install $ tar zxf duo_unix-1.9.tar.gz $ cd

    duo_unix-1.9 $ ./configure --prefix=/usr && make && sudo make install
  7. vim /etc/duo/ login_duo.conf [duo] ; Duo integration key ikey =

    INTEGRATION_KEY ; Duo secret key skey = SECRET_KEY ; Duo API hostname host = API_HOSTNAME