328.3. Spring Boot Auto-Configuration


组件支持 30 个选项,如下所列。

Expand
Name描述默认值类型

camel.component.ssh.cert-resource

设置用于身份验证的证书的资源路径。将使用 ResourceHelperKeyPairProvider 解析基于文件的证书,并依赖于 keyType 设置。

 

字符串

camel.component.ssh.channel-type

将频道类型设置为在命令执行过程中传递给频道。默认为 exec。

 

字符串

camel.component.ssh.configuration.cert-resource

设置用于身份验证的证书的资源路径。将使用 ResourceHelperKeyPairProvider 解析基于文件的证书,并依赖于 keyType 设置。

 

字符串

camel.component.ssh.configuration.channel-type

将频道类型设置为在命令执行过程中传递给频道。默认为 exec。

exec

字符串

camel.component.ssh.configuration.fail-on-unknown-host

指定到未知主机的连接是否应该失败。只有在设置了属性 knownHosts 时,才会检查这个值。

false

布尔值

camel.component.ssh.configuration.host

设置远程 SSH 服务器的主机名。

 

字符串

camel.component.ssh.configuration.key-pair-provider

设置在使用证书连接到远程 SSH 服务器时使用的 KeyPairProvider 引用。

 

KeyPairProvider

camel.component.ssh.configuration.key-type

设置要传递给 KeyPairProvider 的密钥类型,作为身份验证的一部分。KeyPairProvider.loadKey (…​)将传递这个值。默认为 ssh-rsa。

ssh-rsa

字符串

camel.component.ssh.configuration.known-hosts-resource

设置 known_hosts 文件的资源路径

 

字符串

camel.component.ssh.configuration.password

设置用于连接远程 SSH 服务器的密码。需要 keyPairProvider 设置为 null。

 

字符串

camel.component.ssh.configuration.poll-command

设置在每次轮询循环期间要发送到远程 SSH 服务器的命令字符串。只适用于用作消费者的 camel-ssh 组件,例如 from.e. from (ssh://…​),您可能需要使用换行符结束您的命令,且必须采用 URL 编码的 %0A

 

字符串

camel.component.ssh.configuration.port

设置远程 SSH 服务器的端口号。

22

整数

camel.component.ssh.configuration.shell-prompt

在命令执行后读取响应时,将 shell 提示符设置为丢弃

 

字符串

camel.component.ssh.configuration.sleep-for-shell-prompt

设置睡眠周期(以毫秒为单位),以等待从 shell 提示符读取响应。默认值为 100 毫秒。

100

Long

camel.component.ssh.configuration.timeout

设置在建立远程 SSH 服务器连接时等待的超时时间(毫秒)。默认值为 30000 毫秒。

30000

Long

camel.component.ssh.configuration.username

设置登录远程 SSH 服务器的用户名。

 

字符串

camel.component.ssh.enabled

启用 ssh 组件

true

布尔值

camel.component.ssh.host

设置远程 SSH 服务器的主机名。

 

字符串

camel.component.ssh.key-pair-provider

设置在使用证书连接到远程 SSH 服务器时使用的 KeyPairProvider 引用。选项是一个 org.apache.sshd.common.keyprovider.KeyPairProvider 类型。

 

字符串

camel.component.ssh.key-type

设置要传递给 KeyPairProvider 的密钥类型,作为身份验证的一部分。KeyPairProvider.loadKey (…​)将传递这个值。默认为 ssh-rsa。

 

字符串

camel.component.ssh.password

设置用于连接远程 SSH 服务器的密码。需要 keyPairProvider 设置为 null。

 

字符串

camel.component.ssh.poll-command

设置在每次轮询循环期间要发送到远程 SSH 服务器的命令字符串。只适用于用作消费者的 camel-ssh 组件,即 from (ssh://…​)。您可能需要使用换行符来结束您的命令,并且必须采用 URL 编码 %0A

 

字符串

camel.component.ssh.port

设置远程 SSH 服务器的端口号。

 

整数

camel.component.ssh.resolve-property-placeholders

组件是否应在启动时解析属性占位符。只有 String 类型的属性可以使用属性占位符。

true

布尔值

camel.component.ssh.shell-prompt

在命令执行后读取响应时,将 shell 提示符设置为丢弃

 

字符串

camel.component.ssh.sleep-for-shell-prompt

设置睡眠周期(以毫秒为单位),以等待从 shell 提示符读取响应。默认值为 100 毫秒。

 

Long

camel.component.ssh.timeout

设置在建立远程 SSH 服务器连接时等待的超时时间(毫秒)。默认值为 30000 毫秒。

 

Long

camel.component.ssh.username

设置登录远程 SSH 服务器的用户名。

 

字符串

camel.component.ssh.cert-filename

设置用于身份验证的证书的资源路径。

 

字符串

camel.component.ssh.configuration.cert-filename

@deprecated as of 2.11,使用 {@link #setCertResource (String)} 替代

 

字符串

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部