I'm trying to setup an SSH flow to shutdown my NAS when outside my network. Currently i'm using Mobile SSH from the play store and it works very well, so I know i've got my NAS setup correctly. Or at least this far it is.
To begin, I'm not 100% familiar with ssh and some networking areas. that said, I'm having trouble with a few areas. One, trying to decide if I should be using "Network service discovery", "Shell command" or "ADB Shell Command". Not being super savvy here, I'm unsure of where I should be focusing. That being the case, I've kinda tried all of them. lol.
This how far I've got. While using Shell comment and this line, ssh user@ip. I keep getting a java.io.IOException: error=13, Permission denied. I have also tried ssh user@ip password. same result. I've tried setting up a separate block and delays thinking it may be an issue with sending the command all together. Didn't help.
I then tried the Network service discovery, and the same command and same format, I get a read out on the log as the same when I string anything to a shell command block.
I understand from using mobile ssh, I have to hit the connect button, then login as user, then it asked password, once there, I use sudo -i poweroff. It will ask for the password again and after entering it, my NAS accepts and powers down. I'm not certain if automate can perform in this manner. However, using cmd on my pc, the commands are simple and they work after my pc gets the fingerprint. I've tried using this -o StrictHostKeyChecking no before my username. That hasn't help.
PS> should I even be using separate block to execute different line commands? I tried it, no luck. Also tried typing everything out in one line, separated by ; also no luck.
Hoping to find the light at the end of the tunnel :)
any help is welcome and most importantly, very appreciated.
Thank you,
Chris