Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Tell HN: iOS has built in Siri voice commands to run any SSH script
32 points by 35mm on April 14, 2022 | hide | past | favorite | 10 comments
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.



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.


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


I'm using it to open new file or save a file on photoshop https://umtksa.github.io/ssh-photoshop


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.


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.


Cool, do you have a demo? I think it would be funny to hear someone speak out shell commands using this.


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.


So what script are you running ?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: