如何在Mule 4版本:Mule 4.3中解析Mule SFTP Kerberos用户名和密码提示

如何在Mule 4版本:Mule 4.3中解析Mule SFTP Kerberos用户名和密码提示,mule,mule4,Mule,Mule4,我面临SFTP Kerberos用户名和首次运行服务的提示。服务的后续运行运行正常。当SFTP位置在网络中时,Kerberos不提示。如果是另一个网络,它会要求提供Kerberos用户名和密码 启动Bean:org.mule.runtime.module.extension.internal.runtime.config.ConfigurationProviderToolingAdapter-Database_config INFO 2020-07-29 14:21:42151[WrapperL

我面临SFTP Kerberos用户名和首次运行服务的提示。服务的后续运行运行正常。当SFTP位置在网络中时,Kerberos不提示。如果是另一个网络,它会要求提供Kerberos用户名和密码

启动Bean:org.mule.runtime.module.extension.internal.runtime.config.ConfigurationProviderToolingAdapter-Database_config INFO 2020-07-29 14:21:42151[WrapperListener_start_runner][processor:;event:]org.mule.runtime.core.privileged.lifecycle.AbstractLifecycleManager:启动Bean:org.mule.runtime.module.extension.internal.runtime.config.ConfigurationProviderToolingAdapter-SFTP_配置 Kerberos用户名[nmarathe]:

nmarathe的Kerberos密码:

INFO 2020-07-29 14:21:55531[WrapperListener_start_runner][processor:;event:]org.mule.runtime.core.privileged.lifecycle.AbstractLifecycleManager:起始Bean:org.mule.runtime.module.extension.internal.runtime.config.ConfigurationProviderToolingAdapter-Java_-config

关键提示:preferredAuthenticationMethods=“公钥、密码、键盘交互”这无法部署应用程序

<sftp:config name="SFTP_Config" doc:name="SFTP Config"
    doc:id="b5762201-a868-4a1a-ab96-9b7669451708">
    <sftp:connection
        workingDir="${sftp.path}"
        host="${sftp.host}" username="${sftp.user}"
        password="${sftp.password}" port="${sftp.port}" connectionTimeout="120" preferredAuthenticationMethods="publickey,password,keyboard-interactive">
        <reconnection>
            <reconnect frequency="30000" count="20" />
        </reconnection>
    </sftp:connection>
    <expiration-policy maxIdleTime="2" timeUnit="MINUTES" />
</sftp:config>


错误:在深入研究该问题后,Mule注册表中未定义元素“publickey、password、keyboard interactive”。我仅从文档中找到了一个解决方案。 参考:

我刚刚在SFTP连接中添加了以下代码。 preferredAuthenticationMethods=“#['PUBLIC_KEY'、'KEYBOARD_INTERACTIVE'、'PASSWORD']”

PFB解决我问题的详细代码

<sftp:config name="SFTP_Config" doc:name="SFTP Config">
    <sftp:connection
        workingDir="${sftp.path}"
        host="${sftp.host}" username="${sftp.user}"
        password="${sftp.wms.password}" port="${sftp.port}" connectionTimeout="120" preferredAuthenticationMethods="#[['PUBLIC_KEY','KEYBOARD_INTERACTIVE','PASSWORD']]">
        <reconnection>
            <reconnect frequency="30000" count="20" />
        </reconnection>
    </sftp:connection>
    <expiration-policy maxIdleTime="2" timeUnit="MINUTES" />
</sftp:config>


请将完整的错误消息以及所有详细信息复制到问题文本中。谢谢你,伙计,你救了我一天。我曾与其他4个sftp项目合作,这个问题以前没有出现过。可能不同之处在于,我遇到此问题的站点使用的是协议:sftp-6(根据WinSCP 5.17.5)。其他人使用协议:sftp-3。如果您(像我一样)将此应用程序(有问题)部署到on-prem运行时,您将面临一场噩梦,即取消部署该应用程序并用一个有效的解决方案替换它。我有一个Win服务器可以使用,我使用了:从TaskManager中删除包装器和java,从apps文件夹中删除应用程序/删除.mule/app文件夹,使用maven来取消