dotfiles/system/.local/bin/ssh-switch
Severin Kaderli 90993096e7
Add ssh-switch script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2019-06-25 11:31:44 +02:00

16 lines
No EOL
285 B
Bash
Executable file

#!/usr/bin/env bash
#
# SCRIPT NAME:
# ssh-switch
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# 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"