From 612dbb6993c8a548744f29a4d15d6b31325357c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 14 May 2024 18:53:03 +0200 Subject: Tue May 14 06:53:03 PM CEST 2024 --- .bin/ssh-personal | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .bin/ssh-personal (limited to '.bin/ssh-personal') diff --git a/.bin/ssh-personal b/.bin/ssh-personal new file mode 100755 index 0000000..e99764c --- /dev/null +++ b/.bin/ssh-personal @@ -0,0 +1,14 @@ +#!/bin/sh +# Used for work laptop. +# Add personal key and start the ssh-agent with it. + +set -xe + +ssh_personal_key="${HOME}/.ssh/id_personal" + +test -f "${ssh_personal_key}" + +eval "$(ssh-agent)" +ssh-add "${ssh_personal_key}" + +set +xe -- cgit v1.2.3