summaryrefslogtreecommitdiff
path: root/bin/remhelp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/remhelp6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/remhelp b/bin/remhelp
index b66e8b4..76c17be 100755
--- a/bin/remhelp
+++ b/bin/remhelp
@@ -23,6 +23,9 @@ TRAPINT () {
cont=x
}
+log "Adding SSH-Key"
+ssh-add
+
if [[ -z $cont ]]; then
log "Setting up port forwarding"
coproc ssh -tt -R :5500:localhost:5500 necoro@necoro.eu
@@ -32,4 +35,7 @@ if [[ -z $cont ]]; then
log "Sending 'exit' to SSH-Connection"
print -p exit
+
+ log "Removing SSH-Key"
+ ssh-add -d
fi