Passwordless SFTP from Unix to Windows - Permission Denied

Hi guys,


Has anyone of you used passwordless SFTP in transferring files from Unix server to windows server?

Our program is transferring interface files to an SFTP server which is in WINDOWS OS.  Public key was generated/set-up in the Unix serve.  The same public key was also defined in the Windows server. But we are encountering an error when we tried to run the Transfer program.  Error message is "PERMISSION DENIED.  Please see attached error logs.

Hi Amelie,

Can you use an app like FileZilla (an (S)FTP client) to connect to the Windows server? "Permission denied" means that the Windows server denies access.

Kilian Hekhuis wrote:

Hi Amelie,

Can you use an app like FileZilla (an (S)FTP client) to connect to the Windows server? "Permission denied" means that the Windows server denies access.

Hi Killian,


Does the error really pertains to the Windows server access? Because if you checked the logs, PERMISSION DENIED error is pointing to private key in the Unix server.


java.lang.RuntimeException: java.lang.RuntimeException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/u_los_sftp/.ssh/id_rsa (Permission denied)

Right, hadn't thought of that. It seems that the java runtime hasn't access to the id_rsa file. Nevertheless, not really an Outsystems-related question.