Indeed, using the password in plain text isn’t the best way to go here.
But getting access from HA into the Windows machine through ssh using a set of keys is pretty hard to get working.
I’ve generated the key on my windows machine on OpenSSH with the default settings.
using ssh -vvv user@ip I’ve the logs, I can share them personally if anyone would like to ckeck them.
What’s mainly concerning to me is the following
debug1: Will attempt key: /root/.ssh/id_rsa RSA SHA256:*******************
debug1: Will attempt key: /root/.ssh/id_dsa
debug1: Will attempt key: /root/.ssh/id_ecdsa
debug1: Will attempt key: /root/.ssh/id_ecdsa_sk
debug1: Will attempt key: /root/.ssh/id_ed25519
debug1: Will attempt key: /root/.ssh/id_ed25519_sk
debug1: Will attempt key: /root/.ssh/id_xmss
...
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ecdsa
debug3: no such identity: /root/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ecdsa_sk
debug3: no such identity: /root/.ssh/id_ecdsa_sk: No such file or directory
debug1: Trying private key: /root/.ssh/id_ed25519
debug3: no such identity: /root/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /root/.ssh/id_ed25519_sk
debug3: no such identity: /root/.ssh/id_ed25519_sk: No such file or directory
debug1: Trying private key: /root/.ssh/id_xmss
debug3: no such identity: /root/.ssh/id_xmss: No such file or directory
The root here is that referring to the windows user folder?
C:\Users\user***
That’s where I have my public and private key stored.
When using:
"psexec -d -i 1 aplication.exe"
It seems to be executed in the background and nothing visibly happens, which isn’t working for us as we need the application needs to popup for it to work.