I have boot-up the armhf standard machine with ssh on port 22 from here Using this command:
qemu-system-arm -M vexpress-a9 -kernel vmlinuz-3.2.0-4-vexpress -initrd initrd.img-3.2.0-4-vexpress \ -drive if=sd,file=debian_wheezy_armhf_standard.qcow2 -append "root=/dev/mmcblk0p2" -net user,hostfwd=tcp::5555-:22
As explained in this tutorial I've set an ssh-server private/public key pair invoking
ssh-keygen -t rsa on it.
Then when I to connect it from my guest machine Ubuntu 17.10 x64
ssh -p 5555 localhost
I get this error:
ssh_exchange_identification: read: Connection reset by peer
When I try explicitly to ssh connect to the virtual machine invoking
qemu-system-arm -M vexpress-a9 -net user,hostfwd=tcp::5555-:22 &
I get this message
qemu-system-arm: -net user,hostfwd=tcp::5555-:22: Could not set up host forwarding rule 'tcp::5555-:22'
What is the problem ?
How can I ssh connect to the arm emulator ?