TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. thibou.justin
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    thibou.justin

    @thibou.justin

    0
    Reputation
    9
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    thibou.justin Unfollow Follow

    Latest posts made by thibou.justin

    • RE: running trigger on raspberry pi and trigger script on another pi

      @russ Thanks for the explanation. I was messing with it and i did get it working. although i didnt sue the pub key soooo i dont know why its working. Maybe since i copied my private key over to the remote pi , that allowed it to work?

      i did notice that when i was root, and ran "ssh pi@ipaddress /test.sh" it asked me to "fingerprint" the remote pi , which i said yes.

      The script started workign via triggercmd , after that, but i also edited the authorized_keys on the remote pi again (with nano). the remote pi had another key in there and i just mirrored the syntax.

      so at this point its working, maybe i needed to fingerprint the remote pi ? maybe i just fixed the authorized keys file? either way thanks for your help!

      posted in Raspberry Pi
      thibou.justinT
      thibou.justin
    • RE: running trigger on raspberry pi and trigger script on another pi

      ok i already have an ssh key, since when running the command , it asks me if i wanted to overwrite, so for now i said no. and i went to that file /root/.ssh/id_rsa.pub and copied it to the remote /home/pi/.ssh/authorized_keys. I couldnt get it work,

      But i dont think i copied it over correctly. Should i generate a new one, or use the old one? will this break other things i have if i overide and genreate a new one?

      either case what is the simplest or correct way to append the keys to the authorized keys file? since i think my copy over screwed it up.

      Also id_rsa in my root folder doesnt have a .pub on the end... is that fine?

      posted in Raspberry Pi
      thibou.justinT
      thibou.justin
    • RE: running trigger on raspberry pi and trigger script on another pi

      @Russ yes, my intention is to ssh into a remote pi , from triggercmd running on my "main pi" and have it execute a script or command.

      And I was trying to figure exactly what you said out on my own ,since I had a similar issue you helped me with. I was thinking the same but didn't know exactly what I needed to do but makes logical sense, now that you explain it. I'll give that a shot. Thanks!

      posted in Raspberry Pi
      thibou.justinT
      thibou.justin
    • running trigger on raspberry pi and trigger script on another pi

      Re: trigger ssh command on raspberry pi

      I have trigger command running on a raspberrry pi4 and trying to execute a script on another rasperry pi but it doesnt work. i can remote it to the other pi without a password using pi as the username. but using triggercmd the same command doesnt work. Do i need to copy authorized keys on the remote pi to another directory?

      posted in Raspberry Pi
      thibou.justinT
      thibou.justin
    • RE: trigger ssh command on raspberry pi

      @Russ Awesome... that fixed it! Of note i did have to do it this way
      sudo cp /home/pi/.ssh/id_rsa /root/.ssh/id_rsa -f since i was getting errors , but once i did that i ran a sudo more /root/.ssh/id_rsa and compared to the pi id_rssa , and saw they were identical now , then ran triggercommand from voice and it all worked. I did even add it to google home as a routine so i can just say "ok google update my movies" and it all works!!! much much appreciated. Thank you! do you have a donations page? i just see the subscription, and would like to show my appreciation -Justin

      posted in Raspberry Pi
      thibou.justinT
      thibou.justin
    • trigger ssh command on raspberry pi

      I am trying to execute a ssh command and it doesnt seem to be running using the below.

      {"trigger":"Plex Movie Update","command":"ssh -p 5001 user@10.0.0.90 /movies3.sh","ground":"background","voice":"Plex Movie Update","allowParams": "false"},

      if i just run
      "ssh -p 5001 user@10.0.0.90 /movies3.sh " on my raspberry pi , it will run. I have enabled passwordless ssh

      how do it see if the command is running on my voice trigger and what the error is stopping it from running?

      posted in Raspberry Pi
      thibou.justinT
      thibou.justin