328.3. Spring Boot Auto-Configuration


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

Expand
名称描述默认值类型

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 (ssh://…​),您可能需要使用新行结束命令,且必须 URL 编码的 %0A

 

字符串

camel.component.ssh.configuration.port

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

22

整数

camel.component.ssh.configuration.shell-prompt

在命令执行后读取响应时,将 shellPrompt 设置为丢弃

 

字符串

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

在命令执行后读取响应时,将 shellPrompt 设置为丢弃

 

字符串

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

© 2025 Red Hat