You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Sashika <sa...@gmail.com> on 2016/07/13 03:53:54 UTC

Camel SFTP with Publickey

Hi,

The camel documentation is not clear enough on how to use public key
authentication with SFTP. Can anyone have a working example on how to do
this. My requirement is as follows

1. The SFTP server is configured for password less authentication
2. The SFTP server has the private key
3. Camel route should connect to the SFTP server using the public key

Regards
Sashika

Re: Camel SFTP with Publickey

Posted by Sashika <sa...@gmail.com>.
Found the answer. Actually the documentation says it clearly. The
understanding should be as follows

1. The SFTP server is configured for password less authentication
*2. The SFTP server has the Public Key*
3. Camel route specifies the private key file location and no need to
specify the passphrase as the keypair should be generated without a
passphrase in password less case.
4. Camel route specify the directory relative to the home directory of the
server

this way the camel route connects to the server without any issue.

from(sftp://user1@172.XX.XX.XX/key?privateKeyFile=D:\\Dir\\id_rsa&privateKeyPassphrase=pass123&move=.processed&preferredAuthentications=publickey").to("file://inbox")




On Wed, Jul 13, 2016 at 9:23 AM, Sashika <sa...@gmail.com> wrote:

> Hi,
>
> The camel documentation is not clear enough on how to use public key
> authentication with SFTP. Can anyone have a working example on how to do
> this. My requirement is as follows
>
> 1. The SFTP server is configured for password less authentication
> 2. The SFTP server has the private key
> 3. Camel route should connect to the SFTP server using the public key
>
> Regards
> Sashika
>