iMX6 安全复制 scp 命令失败

iMX6 安全复制 scp 命令失败

我在 iMX6 主板上运行嵌入式 Linux。我希望能够使用命令“scp”将文件放入我的系统中。我在具有上述文件的桌面虚拟机中运行 Ubuntu。两者通过 D-link 以太网交换机连接。我仔细检查了嵌入式系统的 IP 地址,并对其进行了 ping 操作以确保连接正常运行。到目前为止,一切都运行正常。

因此我使用带有‘-v’选项的命令并得到以下结果:


username@username-VirtualBox:~$ scp -v /home/username/Desktop/text.txt [email protected]:/
Executing: program /usr/bin/ssh host 10.6.18.77, user root, command scp -v -t /
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g-fips 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 10.6.18.77 [10.6.18.77] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/username/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7
debug1: match: OpenSSH_6.7 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 10.6.18.77:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: [email protected]
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: compression: none
debug1: kex: client->server cipher: [email protected] MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Yj5SwSWphjZW17IMFmDyP9DGzyUqhop9EiDhNUoX3P4
debug1: Host '10.6.18.77' is known and matches the ECDSA host key.
debug1: Found key in /home/username/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS received
debug1: Authentication succeeded (none).
Authenticated to 10.6.18.77 ([10.6.18.77]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: network
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Connection to 10.6.18.77 closed by remote host.
Transferred: sent 1552, received 1200 bytes, in 0.0 seconds
Bytes per second: sent 16864144.6, received 13039287.0 debug1: Exit status -1
lost connection

似乎正在建立连接,但不知何故 iMX6 断开了连接。我完全不知道如何从这里排除故障

相关内容