summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2012-05-21 11:31:45 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2012-05-21 11:31:45 +0200
commitda169dcc83712c81c1630ef7c01d1af0b5f8bb9e (patch)
tree98db346d98fc1246b4cf09fdb02c733b382493ca /bin
parent2bfaec3cc8e02a10dfc28e5bd2f6298ccb7bfaf5 (diff)
downloaddotfiles-da169dcc83712c81c1630ef7c01d1af0b5f8bb9e.tar.gz
dotfiles-da169dcc83712c81c1630ef7c01d1af0b5f8bb9e.tar.bz2
dotfiles-da169dcc83712c81c1630ef7c01d1af0b5f8bb9e.zip
Revert "It uses pinentry directly -- so no use to play around with ssh-add"
This reverts commit 2bfaec3cc8e02a10dfc28e5bd2f6298ccb7bfaf5. As it showed, we got pinentry only because xfce had the wicked idea of starting gpg-agent instead of ssh-agent.
Diffstat (limited to 'bin')
-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