This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好 、Jian35385、
我已经按照您的建议在定制板上移植了 sshd。 然而,我现在和现在都面临这一问题。
1.我 尝试通过电缆将电路板直接与 PC 相连、然后设置静态 IP、从而消除网络的其余部分。 但是、当问题出现时、此测试用例也不起作用。
2.当 ping 操作失败时,即使重新启动 sshd 也不起作用。
3.我尝试按照许多开放源码论坛上的建议更改客户端和服务器上的 MTU,但仍然不起作用。
4.我尝试删除所有加密模块(rmmod cryptodev.ko、cryptd.ko、cryptoEngine .ko、omap_aS.ko、omap_des.ko、omap_shak.ko)并重新启动 sshd、但仍然无法正常工作。
5.另 一个重要的观察结果是,当 ssh 失败并且 ping 正常工作时,ping 只适用于 较小大小(最大118字节)的数据包,除此之外没有任何内容。
我将日志附加到基于 AM5728的客户机(192.168.21.28)自定义主板和服务器(192.168.21.26) PC 上-
在服务器上-
(卡在"SSSH2_MSG_KEXINIT Sent (SSH2_MSG_KEXINIT 已发送)"上)
root@dti7de14-014:/home/user# ssh -vvv root@192.168.21.28 OpenSSH_7.6p1 Ubuntu-4ubuntu0.6, OpenSSL 1.0.2n 7 Dec 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: resolving "192.168.21.28" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to 192.168.21.28 [192.168.21.28] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/id_rsa type 0 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.6 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9 debug1: match: OpenSSH_7.9 pat OpenSSH* compat 0x04000000 debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to 192.168.21.28:22 as 'root' debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts" debug3: record_hostkey: found key type ECDSA in file /root/.ssh/known_hosts:6 debug3: load_hostkeys: loaded 1 keys from 192.168.21.28 debug3: hostkeys_foreach: reading file "/etc/ssh/ssh_known_hosts" debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 debug3: send packet: type 20 debug1: SSH2_MSG_KEXINIT sent
在客户端-
(卡在"期望 SSH2_MSG_KEX_ECDH_INIT [preauth]"上)
root@am57xx-evm:/tmp# cat a.log debug1: Forked child 9392. debug1: Set /proc/self/oom_score_adj to 0 debug1: rexec start in 6 out 6 newsock 6 pipe 8 sock 9 debug1: inetd sockets after dupping: 5, 5 Connection from 192.168.21.26 port 44364 on 192.168.21.28 port 22 debug1: Client protocol version 2.0; client software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.6 debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.6 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002 debug1: Local version string SSH-2.0-OpenSSH_7.9 debug1: permanently_set_uid: 1002/1002 [preauth] debug1: list_hostkey_types: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519 [preauth] debug1: SSH2_MSG_KEXINIT sent [preauth] debug1: SSH2_MSG_KEXINIT received [preauth] debug1: kex: algorithm: curve25519-sha256 [preauth] debug1: kex: host key algorithm: ecdsa-sha2-nistp256 [preauth] debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none [preauth] debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none [preauth] debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
解决此问题对我们的产品至关重要。
请确认。
此致、
Devashish
您好!
我正在等待您回复此帖子。
请确认。
BR、
Devashish
您好!
是否有此问题的更新?
有人在找吗?
请确认。
此致、
Devashish