Camel sftp 端点在哪里需要known_hosts 文件?
为了让camel连接到远程主机,它需要已经看到主机的指纹并将其记录在known_hosts文件中,就像.ssh/known_hosts一样。
我从数据库中的一个字段获取此文件的设置,该字段太小而无法包含完整的 url...如果我可以将 .ssh 文件符号链接到 sftp 端点正在查找的默认位置,我就不必在 URL 中指定它,URL 将适合该列,生活将变得美好。
问题是camel期望这个文件在哪里?
In order for camel to connect to a remote host, it needs to already have seen the fingerprint of the host and record it in a known_hosts file, just like .ssh/known_hosts .
I get the setting from this file from a field in a database which is too small to contain the complete url... If I could symbolic link the .ssh file to the default location where the sftp endpoint is looking, I would not have to specify it in the URL and the url will fit in the column and life will be beautiful.
The question is where does camel expects this file to be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我深入挖掘了一下,答案是:null,没有默认值。
该参数已定义但未初始化为任何内容。在较新版本的 Camel 中,这不是一个问题,因为 checkKnownHosts 选项已关闭。在旧版本中,默认值是ask,这对于应该在无人值守的情况下运行的东西来说相当愚蠢。
I digged somewhat deeper and the answer is : null, there is no default.
The parameter is defined but not initialised to anything. In newer versions of Camel this is less of an issue because the checkKnownHosts option is turned off. In older version the default is ask, which is rather silly for something which is supposed to run unattended.