Skip to content

Instantly share code, notes, and snippets.

@brian-tex
Last active May 30, 2023 20:35
Show Gist options
  • Select an option

  • Save brian-tex/99b431ea31adc98905389bec6556a538 to your computer and use it in GitHub Desktop.

Select an option

Save brian-tex/99b431ea31adc98905389bec6556a538 to your computer and use it in GitHub Desktop.

Introduction

This page lists the steps needed to create an ssh key for Biola System Administration use. We currently use ecdsa with 521 bits.


Step 1: Create an SSH Key

  1. Run the following in terminal:
    • Linux
      ssh-keygen -t ecdsa -b 521 -f ~/.ssh/desiredSSHKeyFilename
      
    • Windows
      ssh-keygen -t ecdsa -b 521 -f $HOME/.ssh/desiredSSHKeyFilename
      
  2. Enter your desired passphrase and press enter.
  3. Enter your desired passphrase again and press enter.

Step 2: Set the SSH Directory and File Permissions

  • Linux
    sudo chown 700 ~/.ssh; sudo chown 600 ~/.ssh/*
    
  • Windows
    icacls $HOME\.ssh /inheritance:r /grant:r "`"$($env:USERNAME)`":(OI)(CI)F" /T ; icacls $HOME\.ssh\* /inheritance:r /grant:r "`"$($env:USERNAME)`":(OI)(CI)F" /T
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment