Feed key passphrase to external SSH command on Windows
I’m using Symfony Process to run the SSH client bundled with Windows in a command-line PHP script. Remote server settings are stored in C:UsersMYUSERNAMEHERE.sshconfig
file, connection is established with a private key and I run the command manually with my personal user.