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