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

mnemonicj

macrumors member
Original poster
Nov 11, 2010
34
0
Hsinchu, Taiwan
Hello.

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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.