Run Script over SSH

Runs a script on a remote computer over SSH.

Score
Type
InterActivity
Expertise
5/5
Type
InterActivity
Expertise

Action Information

Parameters

Host [192.168.1.100 example]
– Port: [22]
– User: [Text]
– Password: [Password]
– Input: [Input]
– Script: [Text area]

Input

(File) The input passed to the shell script (stdin)(optional)

Result

(File) The output from the shell script (stDout)

Comments

To set up remote access from a Mac, go into System Preferences > Sharing and allow Remote Login or Remote Management.

From there, you will see “To log in to this compute remotely, type “ssh [computername]@10.0.0.[334]” where the number string after the @ is your “host”.

Port is also likely 22, and use your own User name and Password.

To be safe, create a second shortcut called “Computer password” and save the password there, then use Run Shortcut to grab that data and fill out your password – that way you can never accidentally share or reveal your computer password from a shortcut with this action.

Shortcuts Using This

Open MindNode for Mac
Opens the MindNode app for Mac directly or remotely via SSH.

Works Well With

Details

Type
Interactivity
Expertise Needed
Matthew's Score
5/5
Category
Date Added to Shortcuts
11/12/2014
Identifier
is.workflow.actions.runsshscript