手动ssh没问题,cachecloudssh报错
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 28/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- backend, networking
Hướng nghiên cứu
Start with com.sohu.cache.ssh.SSHTemplate, especially the connection attempt around line 102, then trace SSHUtil.getMachineInfo and the ch.ethz.ssh2 transport errors shown in the stack trace. Reproduce the connection using the reported CentOS and Java versions, compare it with manual SSH, and document or verify the cause of the proposal negotiation failure.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
cachecloud上配置了ssh后,日志中报错,但是手动去ssh连接是正常的。
系统版本:CentOS Linux release 7.9.2009
java version "1.8.0_212"
2023-03-09 12:03:02.514 ERROR 10639 --- [h-pool-thread-1] com.sohu.cache.ssh.SSHTemplate : getConnection xx.xx.xx.xx:22 error message is There was a problem while connecting to xx.xx.xx.xx:22
java.io.IOException: There was a problem while connecting to xx.xx.xx.xx:22
at ch.ethz.ssh2.Connection.connect(Connection.java:699)
at com.sohu.cache.ssh.SSHTemplate$1.execute(SSHTemplate.java:102)
at com.sohu.cache.util.IdempotentConfirmer.run(IdempotentConfirmer.java:27)
at com.sohu.cache.ssh.SSHTemplate.getConnection(SSHTemplate.java:122)
at com.sohu.cache.ssh.SSHTemplate.execute(SSHTemplate.java:50)
at com.sohu.cache.ssh.SSHUtil.getMachineInfo(SSHUtil.java:73)
at com.sohu.cache.machine.impl.MachineCenterImpl.collectMachineInfo(MachineCenterImpl.java:144)
at com.sohu.cache.machine.impl.MachineCenterImpl$1.execute(MachineCenterImpl.java:118)
at com.sohu.cache.machine.impl.MachineCenterImpl$1.execute(MachineCenterImpl.java:115)
at com.sohu.cache.async.KeyCallable.call(KeyCallable.java:22)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Key exchange was not finished, connection is closed.
at ch.ethz.ssh2.transport.KexManager.getOrWaitForConnectionInfo(KexManager.java:91)
at ch.ethz.ssh2.transport.TransportManager.getConnectionInfo(TransportManager.java:229)
at ch.ethz.ssh2.Connection.connect(Connection.java:655)
... 13 common frames omitted
Caused by: java.io.IOException: Cannot negotiate, proposals do not match.
at ch.ethz.ssh2.transport.KexManager.handleMessage(KexManager.java:412)
at ch.ethz.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:753)
at ch.ethz.ssh2.transport.TransportManager$1.run(TransportManager.java:468)
... 1 common frames omitted
- Ngôn ngữ chính
- HTML
- Star
- 9k
- Fork
- 2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sohutv/cachecloud
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
sohutv/cachecloud#387 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 40/100
sohutv/cachecloud#386 ·
-
是否支持使用ACL或者密码保护?Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
sohutv/cachecloud#329 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
sohutv/cachecloud#328 · 3 bình luận ·
-
在搭建集群的时候出现问题,问题及截图如下Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
sohutv/cachecloud#323 · 2 bình luận ·
Tất cả issue của sohutv/cachecloud
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
PedestrianDynamics/pyFDS-Evac#394 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
python-pillow/Pillow#10087 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ProfessionalWiki/NeoWiki#1573 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
mime-type element is mandatoryĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100