Such a ssh-add
wrapper
This commit is contained in:
17
.bashrc
17
.bashrc
@ -83,6 +83,8 @@ case $(($RANDOM % 2)) in
|
||||
figlet "... mon amour < 3"
|
||||
;;
|
||||
esac
|
||||
|
||||
echo -e "\033[0;0m"
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -110,3 +112,18 @@ extract()
|
||||
echo "'$1' is not a valid file !"
|
||||
fi
|
||||
}
|
||||
|
||||
# Personal macro to live without the f*cking GNOME-keyring which can't handle ED25519 keys...
|
||||
keys()
|
||||
{
|
||||
if [[ $1 == "up" ]]; then
|
||||
# Let's load the keys into the SSH agent, for 1 hour
|
||||
ssh-add
|
||||
elif [[ $1 == "down" ]]; then
|
||||
# Let's unload the keys (why would you do that ?)
|
||||
ssh-add -D
|
||||
else
|
||||
# Just print out the loaded keys...
|
||||
ssh-add -l
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user