Hi Amit,Thanks for the response.My requirement is actually different here. I do not want to encrypt the file. I want to send a file to an external SFTP, but I cannot use the username-password for it. I have the private key, public key and the passphrase and can only use them to connect to the SFTP. ...