Add ssh-switch script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
908f0f7b67
commit
90993096e7
1 changed files with 16 additions and 0 deletions
16
system/.local/bin/ssh-switch
Executable file
16
system/.local/bin/ssh-switch
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/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"
|
Loading…
Add table
Add a link
Reference in a new issue