I am using sshfs (with OSXFUSE) to mount a remote file system on a local directory. In the terminal it looks like
sshfs username@myremoteserver.com: /path/to/local/directory
Then it asks for my password and done.
How can I include this in an applescript?
I tried
do shell script "sshfs username@myremoteserver.com: /path/to/local/directory"
but it does not do anything, which I expect is because it is waiting for a password. I don't know how to prompt securely for a password, pass it to bash and run the ssh command. Ideally I would like to do this without opening a terminal window. Note that the password may change all the time so that I cannot use the Keychain Access.
This other question is similar but only works for the superuser password.