#!/usr/bin/env bash # # SCRIPT NAME: # ssh-switch # # AUTHOR: # Severin Kaderli # # DESCRIPTION: # Switches the current SSH Key # # USAGE: # ./ssh-switch KEY cp -a "${HOME}/.ssh/${1}" "${HOME}/.ssh/id_rsa" cp -a "${HOME}/.ssh/${1}.pub" "${HOME}/.ssh/id_rsa.pub"