Theoretically, you could use camel-netty or camel-mina to do so, but I will
propose a more easy approach which is camel-exec:
http://camel.apache.org/exec.html

Using camel exec you could execute commands in your system. So I guess that
something like ssh username:host -C command would do the trick for you.
You will still have an issue configuring the password, but there are plenty
of options for that, like configuring ssh known-hosts, or creating an ssh
config file, even creating a wrapper script that would pass the password
when prompted.

-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache Camel <http://camel.apache.org/> Committer
Apache ServiceMix <http://servicemix.apache.org/>  Committer
Apache Gora <http://incubator.apache.org/gora/> Committer
Apache DirectMemory <http://incubator.apache.org/directmemory/> Committer
*

Reply via email to