Just ensure you have the public key is available to copy and paste on whatever device you are using to remote access your box. You can potentially connect from your mobile Apple device, but you can also use a terminal connection from a Mac or PC. You now need to login to your box using your terminal app. Select the option to share, and copy the key. The key has a note about this being for Shortcuts for my iPhone, which is useful. Tapping on the blue text of the SSH Key in the shortcut action takes me to a window where you can share the public key. I need to add my public key to the list of authorised keys on the box. Happy that it is, I select Connect.īut this connection will fail as my box doesn’t know to trust my key. If I run this action, I get some fingerprint details to confirm to ensure this really is my box. Note that the action has been set to use an SSH key. Here I’m connecting to one of my Raspberry Pi machines, and it is accessible over a non-standard port. Let’s begin with a simple SSH action in Shortcuts to list files using ls - al You of course also need an i*OS device running Shortcuts. There are steps to take to ensure you can only use SSH with an account that are also worth looking into. This could be utilising a username and password credential-based login or an existing SSH login. Prerequisitesįirst of all, you will need to ensure you have a terminal app ( Termius is a good free option for i*OS) and are able to login to your ‘box’ (which could be virtual). Which of course is an admirable endeavour. A few months back I posted some instructions on the Automators podcast forums that I thought it would be worth re-posting here as it seems there are quite a few people out there who would like to utilise Shortcuts to control their computers from the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |