我的骆驼SFTP使用者每10秒就会连接到服务器,并且在每次连接期间都会打印出大量日志消息,如此处所述。
2016年2月5日20:48:34,441信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH-> kex:客户端:hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
2016年2月5日20:48:34,441信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH-> kex:客户端:无
2016年2月5日20:48:34,441信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH-> kex:客户端:无
2016年2月5日20:48:34,441信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH-> kex:客户端:
2016年2月5日20:48:34,441信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH-> kex:客户端:
2016年2月5日20:48:34,441信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH-> kex:服务器->客户端aes128-ctr hmac-md5无
2016年2月5日20:48:34,441信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH-> kex:客户端->服务器aes128-ctr hmac-md5无
2016年2月5日20:48:34,443信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH->发送了SSH_MSG_KEXDH_INIT
2016年2月5日20:48:34,444信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH->需要SSH_MSG_KEXDH_REPLY
2016年2月5日20:48:34,762信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH-> ssh_rsa_verify:签名为true
2016年2月5日20:48:34,762警告(org.apache.camel.component.file.remote.SftpOperations)[Camel(camel-99)thread#117-sftp:// username:****** @ 11.11.11.11:22/download] JSCH->将“ 11.11.11.11”(RSA)永久添加到已知主机列表中。
2016年2月5日20:48:34,763信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/download] JSCH->发送的SSH_MSG_NEWKEYS
2016年2月5日20:48:34,763信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH->收到SSH_MSG_NEWKEYS
2016年2月5日20:48:34,763信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载] JSCH->已发送SSH_MSG_SERVICE_REQUEST
2016年2月5日20:48:35,079信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/下载]已收到JSCH-> SSH_MSG_SERVICE_ACCEPT
2016年2月5日20:48:35,391信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/download] JSCH->可以继续的身份验证:publickey,keyboard-interactive,password
2016年2月5日20:48:35,391信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/download] JSCH->下一种身份验证方法:publickey
2016年2月5日20:48:35,391信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/download] JSCH->可以继续的身份验证:密码
2016年2月5日20:48:35,391信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/download] JSCH->下一步身份验证方法:密码
2016年2月5日20:48:35,707信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/download] JSCH->身份验证成功(密码)。
2016年2月5日20:48:36,662信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/download]已连接到sftp://[email protected]:22
2016年2月5日20:48:36,662信息(org.apache.camel.component.file.remote.SftpConsumer)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/download]已连接并登录到:sftp://[email protected]:22
2016年2月5日20:48:38,539信息(org.apache.camel.component.file.remote.SftpOperations)[骆驼(camel-99)线程#117-sftp://用户名:****** @ 11.11.11.11:22/download] JSCH->从11.11.11.11端口22断开连接
如何阻止这些消息出现在日志中?
如果您使用的是Log4j之类的记录器,则只需在记录器配置中使用以下行来关闭JSCH记录:
log4j.logger.org.apache.camel.component.file.remote.SftpOperations = OFF
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句