Ok … I know that this is technically bash commands but I can’t find anything on this at all so I am asking here out of sheer desperation!
Notes:
I want to automate a command from HA (which I know how to do)
I am using docker so don’t want anything that I can’t fully automate after the docker image is cleared
I cannot use shared keys as I am connecting to physical hardware that does not support them
The fingerprint changes each time I connect to the remote device
Because of the last two points I am having issues… when I connect I have to do it with a password (which I don’t mind doing through the command line)
…I have tried SSHPass, but don’t know how to get it working … also remember that this is docker so point 2 applies with regard to this.
…also I believe that even with SSHPass I will have to type “yes” to accept the random fingerprint each time I connect…
Surely someone has had this issue before and knows how to do this … why on earth you can’t just go:
ssh -acceptfingerprint yes -p 22 user:pass@hostname ‘command here’
is beyond me!
I have not gotten to the point of calling the command yet … I know it will not work as the calling the command prompts for a password … I need to be able to pass this into the command as plain text that does not seem to be an option