From 90993096e70621ae33d1d7e8f0f43d2b42e7f49c Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Tue, 25 Jun 2019 11:31:44 +0200 Subject: [PATCH] Add ssh-switch script Signed-off-by: Severin Kaderli --- system/.local/bin/ssh-switch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 system/.local/bin/ssh-switch 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