From da169dcc83712c81c1630ef7c01d1af0b5f8bb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 21 May 2012 11:31:45 +0200 Subject: 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. --- bin/remhelp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3