Closed FrostbyteGR closed 1 month ago
This seems reasonable.
I'm not actively developing this project at present. I would look at PRs if anyone is up for trying to implement this idea.
Now that I've actually had the chance to play around with it, looks like I did not RTFM properly back then. I've updated my first post with a more appropriate version of what would be, plus the way I achieved it with a wrapper script.
Since this appears to be fairly easy to achieve and sufficient enough, I believe this request/idea would be redundant.
I know this is closed, but I'm wondering how your wrapper script is working? I took a very similar approach to you (having a bash script that just executed ssh commands) and I've found that any version newer than 0.6.0 won't work since the ssh binary stopped being shipped.
I can probably just include an apt update && apt install -y openssh-client
as part of the script, but that seems messy.
I know this is closed, but I'm wondering how your wrapper script is working? I took a very similar approach to you (having a bash script that just executed ssh commands) and I've found that any version newer than 0.6.0 won't work since the ssh binary stopped being shipped.
I can probably just include an
apt update && apt install -y openssh-client
as part of the script, but that seems messy.
Hi,
You just need to have an ssh client on your machine (which ssh
).
It's pretty much just a plain bash script, which you can run on it's own.
The only relevance it really has with maaspower; is how I validate the input arguments, and the resulting output. (To be simple and friendly towards the regex you will set in the *.cfg)
Oh, ha, I should clarify that I'm using the docker container, which stopped shipping the ssh binary in its container after v0.6.0. And yeah, I got around this by just adding a quick blurb right at the beginning of my script:
if [[ ! $(which ssh) ]]; then
apt update && apt install openssh-client -y
fi
Greetings,
I was wondering, whether an SSH type of device control could be implemented into the project.
Here's a generic example:
Here's another example that could possibly work with MikroTik PoE devices (i.e. CRS328-24P-4S+RM):
NOTE:
password
andssh-key
arguments should be mutually exclusive?I believe that right now, the same thing can be achieved via
type: CommandLine
like this:And a
maaspower_ssh_mikrotik.sh
like this:Thus, I would consider it as a very low priority kind of request.
Many thanks for your time and efforts on this project!