camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From londonukm <graham.lit...@outlook.com>
Subject Re: Camel SSH Issue - Password in plain text.
Date Tue, 28 Aug 2012 11:28:09 GMT
Hi, 

Instead of using the password option which i think does use the password in
plain text can you not use the KeyPairProvider option with something a
little like this:


                SshComponent sshComponent = new SshComponent();
                sshComponent.setHost("localhost");
                sshComponent.setPort(port);
                sshComponent.setUsername("smx");
                sshComponent.setKeyPairProvider(new FileKeyPairProvider(new
String[]{"src/test/resources/hostkey.pem"}));
                sshComponent.setKeyType(KeyPairProvider.SSH_RSA);

                getContext().addComponent("ssh-rsa", sshComponent);

                from("direct:ssh-rsa")
                        .to("ssh-rsa:test")
                        .to("mock:rsa");

Thanks

Graham



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-SSH-Issue-Password-in-plain-text-tp5718183p5718186.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message