SSH from Windows without entering a password

Hello,
I need to access “WD My cloud ex2 ultra” from windows to turn it off when I don’t need to have it turned on through a .bat file.
The ssh access is ok, but I don’t want the passwd to be visible and I prefer to create public and private keys using Putty.
Can someone help me set it up?
Thanks

Hi @autofalcon,

Please refer below link to set SSH password :
https://support-en.wd.com/app/answers/detail/a_id/26497

Hope it helps!!

These bots aren’t helpful.
I don’t think you’ll be able to send commands using putty. You’ll probably have to use plink from the same developer.
Generate your keys of your root user using the command ssh-keygen and press enter in all prompts. You’ll need to point to the private key when connecting to the NAS.