このコンテンツは選択した言語では利用できません。

Chapter 98. SSH


SSH

Available as of Camel 2.10
The SSH component enables access to SSH servers such that you can send an SSH command, and process the response.
Maven users will need to add the following dependency to their pom.xml for this component:
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-ssh</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>
Copy to Clipboard Toggle word wrap

URI format

ssh:[username[:password]@]host[:port][?options]
Copy to Clipboard Toggle word wrap

Options

Expand
Name Default Value Description
host Hostname of SSH Server
port 22 Port of the SSH Server
username Username used for authenticating with SSH Server.
password Password used for authenticating with SSH Server. Used if keyPairProvider is null.
keyPairProvider Refers to a org.apache.sshd.common.KeyPairProvider to use for loading keys for authentication. If this option is used, then password is not used.
keyType ssh-rsa Refers to a key type to load from keyPairProvider. The key types can for example be "ssh-rsa" or "ssh-dss".
certFilename Refers to a file name to use as file based keyPairProvider.
timeout 30000 Milliseconds to wait beforing timing out connection to SSH Server.
initialDelay 1000 *Consumer only:* Milliseconds before polling the SSH server starts.
delay 500 *Consumer only:* Milliseconds before the next poll of the SSH Server.
useFixedDelay true *Consumer only:* Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in JDK for details.
pollCommand *Consumer only:* Command to send to SSH Server during each poll cycle. Used only when acting as Consumer

Example

See the examples/camel-example-ssh in the Camel distribution.
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat