Run Script Over SSH

phalexmm

Cadet
Joined
Nov 26, 2022
Messages
1
Hi, I've been using TrueNAS CORE (13) for a month, so I'm quite a newbi.
I'm trying to run a ssh script from my Mac on TrueNAS using the Siri Shortcuts App. However, I can't get it to work using a SSH Key.

I've managed to make it work using a password (Services>SSH>GeneralOptions>Log in as Root with Password) but as in the info windows says, it's not recommended so I'm trying to make it work with an SSH Key.

The Shortcuts app on macOS gives me a Public Key which looks like this:
Code:
ssh-ed25519 AAAAC3NzaC1lZDI1NT************ Shortcuts on Alex’s MacBook Pro

I've tried to copy that key under "Accounts>Users>root>SSH" Public Key and under the ".ssh/autorized_keys" file using the Shell, but none of the seem to make it work.

I'm attaching a screenshot of what the Shortcuts app looks like (dmidecode is just for testing. When clicking on the SSH Key button, it allows me to copy the Public Key.

So the question is: How should I configure TrueNAS to make this work?

Thanks
 

Attachments

  • Screenshot 2022-11-26 at 19.47.16.png
    Screenshot 2022-11-26 at 19.47.16.png
    39.9 KB · Views: 61
Top