dropbear가 실행 중인 qemu arm64 이미지

dropbear가 실행 중인 qemu arm64 이미지

dropbear를 사용하여 ARM64 qemu 이미지를 설정했습니다. 호스트에서 SSH로 접속하려고 합니다. 게스트를 시작하려면 다음 명령줄을 사용했습니다.

#!/bin/bash

~/repos/qemu-2.6.0-rc3/aarch64-softmmu/qemu-system-aarch64 \
  -machine virt \
  -cpu cortex-a57 \
  -machine type=virt \
  -nographic -smp 1 \
  -m 2048 \
  -kernel ./arch/arm64/boot/Image \
  --append "console=ttyAMA0" \
  -net nic,model=virtio \
  -net user,hostfwd=tcp::10022-:22

부트로그에 다음이 표시됩니다.

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing unused kernel memory: 7684K (ffffffc000715000 - ffffffc000e96000)
Freeing alternatives memory: 4K (ffffffc000e96000 - ffffffc000e97000)
Starting logging: OK
Initializing random number generator... random: dd urandom read with 1 bits of entropy available
done.
Starting network: OK
Starting dropbear sshd: OK

Welcome to Buildroot
buildroot login: root

ssh root@localhost게다가 나는 손님에 대해 할 수 있어요 .

그러나 호스트에서 SSH로 접속하려고 하면 다음과 같은 메시지가 나타납니다.

$ ssh root@localhost -p10022 -vvv
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /home/mememe/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/tmp/ssh_mux_172.16.109.1_10022_root" does not exist
debug2: resolving "172.16.109.1" port 10022
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 172.16.109.1 [172.16.109.1] port 10022.
debug1: Connection established.
debug1: identity file /home/mememe/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mememe/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mememe/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mememe/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mememe/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mememe/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mememe/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mememe/.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

이 시점에서는 응답이 없습니다. 이 문제는 왜 발생합니까? 내 SSH 구성에는 다음 줄만 있으므로 문제가 아닌 것 같습니다.

ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r

VM에 루트 비밀번호를 설정했으며 루트 비밀번호를 사용하여 SSH에 접속할 수 있기를 원합니다.

편집하다

충분히 오래 기다리면 자세한 출력에 다음 줄이 표시됩니다.

ssh_exchange_identification: read: Connection reset by peer

관련 정보