I am using a command line argument to start Pageant (if not already running), and load the required key: System.Diagnostics.Process.Start(@"C:\pageant.exe", @"C:\myPrivateKey.ppk");
When I execute the above line I get a dialogue to enter the passphrase for the private key. It all works fine after I enter the passphrase.
The issue is that the key is passphrase protected, and the program I am writing needs to run on a server that nobody ever sees, so I am trying to work out how to get it fully automated. From what I have read on the FAQ and the forums, you cannot avoid having to enter your passphrase the first time you load the key.
Is there any way to fully automate per my requirement, whereby no user interaction is required when using SFTP with passphrase protected private key?
I'd appreciate any feedback or help, would consider any solution, even if it means using completely different software to meet the requirements.