From e07a9ee0fbb5b965edc0f3f1e01b213197a602a7 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 3 Oct 2010 21:34:08 +0000 Subject: unset SSH_AUTH_SOCK to avoid key from agent If SSH_AUTH_SOCK was set by the ssh-agent, we will try to use keys from it. Which is a bad idea if you otherwise have an ssh key to the support user. git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@8400 283159da-0705-0410-b60c-f2062b4bb6ad --- rapid-tunneling | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rapid-tunneling b/rapid-tunneling index 8146948..19402ca 100755 --- a/rapid-tunneling +++ b/rapid-tunneling @@ -40,4 +40,4 @@ else SSD="/sbin/busybox start-stop-daemon" fi -$SSD -S -b -m -p $base_dir/pid -x /bin/sh -- -c "exec ssh -o 'StrictHostKeyChecking no' -o 'BatchMode yes' -o 'ServerAliveInterval 60' -T -p $port -i $base_dir/key -R $tunnelport:127.0.0.1:22 -l $user $host < $base_dir/ra-params.tar.gz" +$SSD -S -b -m -p $base_dir/pid -x /bin/sh -- -c "exec env SSH_AUTH_SOCK= ssh -o 'StrictHostKeyChecking no' -o 'BatchMode yes' -o 'ServerAliveInterval 60' -T -p $port -i $base_dir/key -R $tunnelport:127.0.0.1:22 -l $user $host < $base_dir/ra-params.tar.gz" -- cgit v1.2.3