From a29c8b5d6759900b61f4da2c8a60f697278d82d3 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Thu, 7 Feb 2019 13:53:59 -0500 Subject: [PATCH] Add key removal from ssh-agent --- ssh.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssh.sh b/ssh.sh index 6310497..0c7fa62 100755 --- a/ssh.sh +++ b/ssh.sh @@ -36,5 +36,8 @@ EOF #SSH to the host ssh $hostname +#remove the key from the ssh-agent +ssh-add -d $keyfile + #remove the key rm -f $keyfile