Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacPC

macrumors regular
Original poster
Sep 25, 2006
213
1
Hi I am trying to write an Applescript to Mount a remote volume on the desktop.

I have this

tell application "Terminal"
do script "/usr/local/bin/sshfs me@xxx.xxx.xxx.xxx:/Volumes/data/myDropbox /Volumes/data/Desktop/myDropbox"
end tell

This opens a Terminal with the command, then it's waiting for the password. That's where I got stuck. How do I enter the password in Applescript?

Thanks in advance.
 
You can't. The only solution is to setup public key authentication with the server so that a password isn't needed.
 
Hi Intell,

Thanks for the reply. That's a great idea except that I am not sure how to use the public key for sshfs. I can ssh and sftp to the server with the key just fine but I don't seem to find any useful info about that for sshfs.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.