我正在尝试在后台进程中访问在Linux上运行的opendaylight服务器。 我正在运行一个分发karaf-0.2.1-Helium-SR1。
根据我的理解,如果你试图从同一台机器连接,你需要做的就是运行
./ client和连接将完成。
但我得到的只是:
[root @ d20-srv-81-32 bin]#。/ client 以karaf身份登录 258 [pool-2-thread-2] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - 服务器位于/0.0.0.0:8101,显示未验证的密钥: [root @ d20-srv-81-32 bin]#
当我尝试使用简单的ssh进行连接时: ssh -o UserKnownHostsFile = / dev / null -o StrictHostKeyChecking = no -p 8101 karaf @ localhost 操作成功。
有没有人遇到过这个问题?
更多信息./client -v结果
[root@d20-srv-81-32 bin]# ./client -v
23 [main] INFO org.apache.sshd.common.util.SecurityUtils - BouncyCastle not registered, using the default JCE provider
207 [pool-2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Session created...
Logging in as karaf
215 [pool-2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Server version string: SSH-2.0-SSHD-CORE-0.12.0
216 [pool-2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Received SSH_MSG_KEXINIT
227 [pool-2-thread-1] INFO org.apache.sshd.client.kex.DHG1 - Send SSH_MSG_KEXDH_INIT
234 [pool-2-thread-2] INFO org.apache.sshd.client.kex.DHG1 - Received SSH_MSG_KEXDH_REPLY
241 [pool-2-thread-2] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at /0.0.0.0:8101 presented unverified key:
241 [pool-2-thread-2] INFO org.apache.sshd.client.session.ClientSessionImpl - Received SSH_MSG_NEWKEYS
245 [pool-2-thread-2] INFO org.apache.sshd.client.session.ClientSessionImpl - Send SSH_MSG_SERVICE_REQUEST for ssh-userauth
248 [main] INFO org.apache.sshd.client.auth.UserAuthAgent - Send SSH_MSG_USERAUTH_REQUEST for publickey
256 [pool-2-thread-5] INFO org.apache.sshd.client.auth.UserAuthAgent - Received SSH_MSG_USERAUTH_SUCCESS
306 [main] INFO org.apache.sshd.client.channel.ChannelShell - Send SSH_MSG_CHANNEL_OPEN on channel 101
307 [pool-2-thread-2] INFO org.apache.sshd.client.channel.ChannelShell - Send agent forwarding request
308 [pool-2-thread-2] INFO org.apache.sshd.client.channel.ChannelShell - Send SSH_MSG_CHANNEL_REQUEST pty-req
308 [pool-2-thread-2] INFO org.apache.sshd.client.channel.ChannelShell - Send SSH_MSG_CHANNEL_REQUEST env
309 [pool-2-thread-2] INFO org.apache.sshd.client.channel.ChannelShell - Send SSH_MSG_CHANNEL_REQUEST shell
[root @ d20-srv-81-32 bin]#
答案 0 :(得分:0)
最后问题是因为我使用了开放日光氦的拉链释放。
在opendaylight下载页面上有两个版本。一个压缩为zip,另一个压缩为tar.gz.从我发现它们之间存在系统差异,zip用于Windows,而tar用于Linux。当我在Linux上部署tar版本时,问题没有重现。