diff --git a/system/.local/bin/ssh-switch b/system/.local/bin/ssh-switch new file mode 100755 index 0000000..1cd5e75 --- /dev/null +++ b/system/.local/bin/ssh-switch @@ -0,0 +1,16 @@ +#!/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" \ No newline at end of file