Home Assistant command line code doesn’t work but if i use terminal it works. Install and configure SSH Config Tool from the UnRaid community app store Make it executable: chmod 755 /boot/config/ssh/setup_ssh_client.shĬopy the previously created authorized_keys into /boot/config/ssh folder cp /root/.ssh/authorized_keys /boot/config/ssh/Įdit /boot/config/go and add the following line at the end, so that our setup script can be called during reboot: # SSH ScriptĬonfirm the script has worked and that authorized_keys exists as we did in Step 1 ls /root/.ssh Once the key has been copied, it is best to test it ssh -i /config/unraid/.ssh/rsa_key_name the UnRaid server is rebooted before when next section of the guide is completed your SSH keys will get removed from UnRaid and you will need to start again from step 3.Ĭheck authorized_keys exists ls /root/.sshĬhange permission of authorized_keys to 600: chmod 600 /root/.ssh/authorized_keysĬreate a script in /boot/config/ssh/setup_ssh_client.sh: #!/bin/bashĬp /boot/config/ssh/authorized_keys $/authorized_keys Use a command like the following to copy SSH key: ssh-copy-id -i /config/unraid/.ssh/rsa_key_name the password when requested Once the key has been authorized for SSH, it grants access to the server without a password. Once an SSH key has been created, the ssh-copy-id command can be used to install it as an authorized key on the server. Specifiy the location of the output to be /config/unraid/.ssh/rsa_key_name Let’s begin… Create RSA Token Home Assistant CLIĬreate UnRaid Directory in hassio dir mkdir /unraid/ Hopefully some of you will find this helpful… Most importantly it works from the Google Homeīe aware this guide assumes you have WOL configured correctly in the BIOS. So after much Googling I’ve cobbled together this guide on how to turn on/off UnRaid from Hassio using RSA SSH and Wake on LAN. I could have paid £4 for the UnRAID app but that didn’t sit well when I just want to ask Google to turn off the server. I host hassio on a Intel NUC and it bothered me every time I wanted to shut down the UnRAID server I had to login to the UnRAID UI to do it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |