Autossh & Automator

Discussion in 'OS X Mountain Lion (10.8)' started by mnemonicj, May 19, 2013.

  1. mnemonicj macrumors member


    Nov 11, 2010
    Hsinchu, Taiwan

    I recently setup an Ubuntu box and I use my MacBook to ssh into it. I installed autossh on my MacBook through Macports to maintain a consistent ssh connection. I want to set up a Workflow on Automator or use an Applescript to run the command to automatically on startup to ssh into my Linux box.

    I use this command to connect with autossh "autossh -M 8080 -p port# myusername@ip_host". It works fine.

    I try to run a shell script in Workflow with the previous command (I use the exact path where autossh is installed by Macports '/opt/local/bin/autossh') but always get an execution error with absolutely no feedback on what's wrong, just an error message saying "The action "Run Shell Script" encountered an error. Check the action's properties and try running the workflow again."

    Any help please?

Share This Page