Sorry, one mistake in original script (AUTH_SOCK line). The script
should be:

#!/usr/bin/php
<?php

$array = posix_getpwuid(posix_getuid());
putenv("SSH_AUTH_SOCK=" . $array["dir"] . "/.ssh/agent.sock");

$newcommand = array_shift($argv) . ".original";
$command = $newcommand . " " . implode(" ",
array_map("escapeshellarg", $argv));
system($command, $exitstatus);
exit($exitstatus);
?>

On Jan 17, 1:36 pm, trask768 <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Thought I'd pass on some work I did to make sshfs connect to my ssh-
> agent process - the agent socket location might be different based on
> your OSX configuration, but mine is at $HOME/.ssh/agent.sock.
>
> Since password-protected rsa key files are really the most secure way
> to go, especially on a laptop, this allows you to connect without
> having to type your key password every time you need to connect to a
> host.
>
> Let me know if you have any questions.
>
> I moved sshfs-static to sshfs-static.original and saved the following
> (chmod 755) as sshfs-static:
>
> #!/usr/bin/php
> <?php
> putenv("SSH_AUTH_SOCK=" . getenv("HOME") . "/.ssh/agent.sock");
> $newcommand = array_shift($argv) . ".original";
> $command = $newcommand . " " . implode(" ",
> array_map("escapeshellarg", $argv));
> system($command, $exitstatus);
> exit($exitstatus);
> ?>
>
> Hope this helps your project. It certainly made sshfs much easier to
> use on my computer.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"macfuse-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to