SFTP Connection Requiring Password to Open SSH Keyring File on Remote Server from PS/.Net script
I am calling WinSCP via a PS command line/.Net WinSCP script. This script connects to a remote SFTP site using UserName/Password and SSH Auth. The FTP site host allows a password to be passed but is ignoring it; only using SSH authentication. The command is being initiated from computer 'A' (client) on the same network/domain as Computer 'B' (App server). WinSCP and the SSH Keyring both reside on computer 'B'. If I call the command with the WinSCP Password parm enabled, the SFTP site connection is successful and the script completes successfully. If I disable the Password parm, the script fails (see attached error messages from PS script console). If I run the same PS Command/script locally on the Computer 'B' regardless of Password parm is enabled or disabled, I get a successful site connection and script execution. If I copy the SSH keyring to a local drive on Computer 'A' and run the same PS command locally regardless of Password parm enabled or disabled, I get a successful site connection and script execution.
So the issue seems to be related to requiring a password to open the SSH keyring on a different computer than the computer running the PS/WinSCP command.
I am not sure if this is a WinSCP issue or a computer security-related issue. Can you provide guidance on what I need to change or configure so that I am able to open the SSH Keyring file on the remote computer without requiring the Password parm in the script?
So the issue seems to be related to requiring a password to open the SSH keyring on a different computer than the computer running the PS/WinSCP command.
I am not sure if this is a WinSCP issue or a computer security-related issue. Can you provide guidance on what I need to change or configure so that I am able to open the SSH Keyring file on the remote computer without requiring the Password parm in the script?