Mount ssh volume with Applescript

Discussion in 'Windows, Linux & Others on the Mac' started by MacPC, Feb 17, 2013.

  1. MacPC macrumors regular

    Sep 25, 2006
    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 /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.
  2. Intell macrumors P6


    Jan 24, 2010
    You can't. The only solution is to setup public key authentication with the server so that a password isn't needed.
  3. MacPC thread starter macrumors regular

    Sep 25, 2006
    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.

Share This Page