我需要通过 SFTP 连接到服务器,但收到此错误:
INFO [org.apache.camel.component.file.remote.SftpOperations.connect]: **Connected to sftp://myserver.com:22**
INFO [org.apache.camel.component.file.remote.RemoteFileProducer.connectIfNecessary]: **Connected and logged in to: Endpoint[sftp://myserver.com:22//home/tomcat/directory?password=******]
INFO [org.apache.camel.component.file.remote.SftpOperations$JSchLogger.log]: JSCH -> **Caught an exception, leaving main loop due to Read timed out**
INFO [org.apache.camel.component.file.remote.SftpOperations$JSchLogger.log]: JSCH -> **Disconnecting from myserver.com port 22**
WARN [org.apache.camel.component.file.remote.RemoteFileProducer.handleFailedWrite]: **Writing file failed with: Cannot change directory to: /**
我尝试使用camel SFTP选项maximumReconnectAttempts=10
, serverAliveInterval=60
并将骆驼版本更改为2.12.0然后到2.10.7(问题已解决的版本),但这些都没有解决我的问题。
似乎是一个错误,但奇怪的是并不是每次都被复制我尝试连接到我的服务器。
我很感激任何建议。
添加camel SFTP选项后我解决了我的问题disconnect=true
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)