Skip to content

Bash Script to Generate a MFA SSH Key with Yubikeys, etc.

Notifications You must be signed in to change notification settings

acep-uaf/acep-ssh-keygen-mfa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ssh-keygen-mfa

ssh-keygen-mfa-yubikey.sh

Usage

jehaverlack@jehaverlack-chuwi-0:~/.ssh$ ./ssh-keygen-mfa-yubikey.sh -h
Usage: ./ssh-keygen-mfa-yubikey.sh [optional_key_name]
      ./ssh-keygen-mfa-yubikey.sh -h|--help

About:
# Name:    ssh-keygen-mfa-yubikey.sh
# Description: Bash Script to Generate a MFA SSH Key with Yubikeys
# Copyright (C) 2024 Alaska Center for Energy and Power, University of Alaska Fairbanks
# License: For UAF Use Only
# Source:  https://github.com/acep-uaf/acep-ssh-keygen-mfa
# Author:  John Haverlack ([email protected])
# Version: 1.0.0
# Date:    2024-01-20

This script generates an Ed25519-SK SSH key using a YubiKey on Debian based Linux systems.
If an optional key name is provided, it is used as the filename for the key.
Otherwise, the key file is named based on the hostname, date, and YubiKey serial number.

Dependencies: ssh, ykman
To install dependencies: sudo apt install yubikey-manager

About

Bash Script to Generate a MFA SSH Key with Yubikeys, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages