簡體   English   中英

Karaf客戶端無法連接到Linux下的服務器

[英]Karaf client failes to connect to a server under linux

我正在嘗試通過回程訪問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]#

最后,問題是由我使用開放日光氦氣的拉鏈釋放引起的。

在opendaylight下載頁面上,有兩個版本。 一個壓縮為zip,另一個壓縮為tar.gz。 從我發現它們之間存在系統差異,zip是針對Windows的,tar是針對Linux的。

當我在Linux上部署tar版本時,問題沒有重現。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM