Generate and Setup SSH Keys With Lawrence

Issue/Question

How do I make and setup SSH Keys for Lawrence?

Environment

  • MobaXTerm
  • Shell
  • Bash
  • Zsh

Cause

Want to securely connect to HPC resources

Resolution

  1.  Open a terminal on your local machine
    Note: This can be MobaXTerm (Windows), or Bash/Zsh (Linux or Mac)
  2. Type ssh-keygen and press enter
    Note: This generates a keypair on your local machine
  3. Press enter to accept the default path
  4. Press enter to skip the passphrase
  5. Press enter again to confirm
  6. Type ssh-copy-id first.last@lawrence.usd.edu and press enter
    Note:
    Use your own name instead of first.last
    Note: This sets up the newly generated key for use on lawrence
  7. Type your password and press enter
  8. Complete the Duo second factor authentication
  9. Type ssh first.last@lawrence.usd.edu to test your SSH Key

Details

Article ID: 6615
Created
Fri 8/20/21 5:43 PM
Modified
Mon 9/25/23 11:19 AM
KCS Article Status
WIP: Only Problem & some Environment captured
Not Validated: Complete & Resolution captured, confidence lacks in structure, content, no feedback
Validated: Complete & reusable, used by licensed KCS user, confidence in resolution & std. compliance
Validated

Related Articles (2)

Instructions for logging into Lawrence, the supercomputer, and a link to a tutorial
Instructions for logging into Lawrence HPC on Windows