diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-10-03 21:34:08 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-10-03 21:34:08 +0000 |
commit | e07a9ee0fbb5b965edc0f3f1e01b213197a602a7 (patch) | |
tree | a121aac2915016a7f3bfc5a6d82fab6448ee37c6 | |
parent | 24bbb7371c52aa93d676104b36c35be87ef5c8b6 (diff) |
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
-rwxr-xr-x | rapid-tunneling | 2 |
1 files changed, 1 insertions, 1 deletions
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" |