I want to upload a file to sftp location and we have only private key for connecting. I tried using system caller by keeping this command inside that :
sftp -i <private_key_path> -b - user@hostname <<< 'put <path_file_to_upload> <path_remotepath_where_to_upload>'
and also tried with this command also:
sftp -o -i <privatekey_path> user@hostname
but none of the commands worked in fme server, it is showing as failed to execute the command, Am I giving the correct commands or could anyone help me out on how to connect to sftp using private key in fme server configured on linux env.