Tell HN: iOS has built in Siri voice commands to run any SSH script

32 points by 35mm ↗ HN
You can create a voice command using the built in Shortcuts app, which will run an arbitrary SSH script on a remote server.

Key based auth is supported.

Just discovered this today and thought I’d share.

10 comments

[ 3.3 ms ] story [ 38.3 ms ] thread
So what script are you running ?
Do you have a link to the recipe you used to make the Shortcut?
No but it’s fairly straightforward, you need to create a new shortcut and then add ‘Run script over SSH’ as the action
Is this possible without enabling “sound recognition” (always-on Siri)? That’s the only relevant condition I see available under Shortcuts > Automations.
Cool, do you have a demo? I think it would be funny to hear someone speak out shell commands using this.
The ssh shortcut can also be used from the iOS share sheet, e.g. to send a URL, file or selected text to a script on a local/remote server.
I just noticed this last week myself, super cool. I have a small script I wanted to run on a local raspberry pi and this worked great
Such a shame. I can’t even get this iPhone to automatically upload videos to iCloud using Apple Script.

Use example: set the script to do a record button, upload, and forget.

Siri… run script jira__mark_for_for_delete.sh

> Ok, do you want to run jira__purge_marked_for_delete.sh

<<garbled>>

> Ok. Running script.