SSH cannot connect to qemu ARM emulator

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












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 ?



Thank you







share|improve this question




















  • Can you confirm that the sshd server is actually running on the virtual machine?
    – fcbsd
    Dec 15 '17 at 12:44










  • I think so. I have a working process called /user/sbin/sshd (with no children)
    – Roey
    Dec 19 '17 at 9:38










  • can you post the output of ssh -vvv -p 5555 localhost it will give more debugging information which might help track down the issue.
    – fcbsd
    Dec 20 '17 at 10:19










  • OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [::1] port 5555. debug1: connect to address ::1 port 5555: Connection refused debug1: Connecting to localhost [127.0.0.1] port 5555. debug1: connect to address 127.0.0.1 port 5555: Connection refused ssh: connect to host localhost port 5555: Connection refused Sorry I can't ident the script output CTRL+K is hijacked by Firefox to focus the address line.
    – Roey
    Dec 21 '17 at 15:26















up vote
2
down vote

favorite












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 ?



Thank you







share|improve this question




















  • Can you confirm that the sshd server is actually running on the virtual machine?
    – fcbsd
    Dec 15 '17 at 12:44










  • I think so. I have a working process called /user/sbin/sshd (with no children)
    – Roey
    Dec 19 '17 at 9:38










  • can you post the output of ssh -vvv -p 5555 localhost it will give more debugging information which might help track down the issue.
    – fcbsd
    Dec 20 '17 at 10:19










  • OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [::1] port 5555. debug1: connect to address ::1 port 5555: Connection refused debug1: Connecting to localhost [127.0.0.1] port 5555. debug1: connect to address 127.0.0.1 port 5555: Connection refused ssh: connect to host localhost port 5555: Connection refused Sorry I can't ident the script output CTRL+K is hijacked by Firefox to focus the address line.
    – Roey
    Dec 21 '17 at 15:26













up vote
2
down vote

favorite









up vote
2
down vote

favorite











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 ?



Thank you







share|improve this question












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 ?



Thank you









share|improve this question











share|improve this question




share|improve this question










asked Dec 15 '17 at 11:56









Roey

112




112











  • Can you confirm that the sshd server is actually running on the virtual machine?
    – fcbsd
    Dec 15 '17 at 12:44










  • I think so. I have a working process called /user/sbin/sshd (with no children)
    – Roey
    Dec 19 '17 at 9:38










  • can you post the output of ssh -vvv -p 5555 localhost it will give more debugging information which might help track down the issue.
    – fcbsd
    Dec 20 '17 at 10:19










  • OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [::1] port 5555. debug1: connect to address ::1 port 5555: Connection refused debug1: Connecting to localhost [127.0.0.1] port 5555. debug1: connect to address 127.0.0.1 port 5555: Connection refused ssh: connect to host localhost port 5555: Connection refused Sorry I can't ident the script output CTRL+K is hijacked by Firefox to focus the address line.
    – Roey
    Dec 21 '17 at 15:26

















  • Can you confirm that the sshd server is actually running on the virtual machine?
    – fcbsd
    Dec 15 '17 at 12:44










  • I think so. I have a working process called /user/sbin/sshd (with no children)
    – Roey
    Dec 19 '17 at 9:38










  • can you post the output of ssh -vvv -p 5555 localhost it will give more debugging information which might help track down the issue.
    – fcbsd
    Dec 20 '17 at 10:19










  • OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [::1] port 5555. debug1: connect to address ::1 port 5555: Connection refused debug1: Connecting to localhost [127.0.0.1] port 5555. debug1: connect to address 127.0.0.1 port 5555: Connection refused ssh: connect to host localhost port 5555: Connection refused Sorry I can't ident the script output CTRL+K is hijacked by Firefox to focus the address line.
    – Roey
    Dec 21 '17 at 15:26
















Can you confirm that the sshd server is actually running on the virtual machine?
– fcbsd
Dec 15 '17 at 12:44




Can you confirm that the sshd server is actually running on the virtual machine?
– fcbsd
Dec 15 '17 at 12:44












I think so. I have a working process called /user/sbin/sshd (with no children)
– Roey
Dec 19 '17 at 9:38




I think so. I have a working process called /user/sbin/sshd (with no children)
– Roey
Dec 19 '17 at 9:38












can you post the output of ssh -vvv -p 5555 localhost it will give more debugging information which might help track down the issue.
– fcbsd
Dec 20 '17 at 10:19




can you post the output of ssh -vvv -p 5555 localhost it will give more debugging information which might help track down the issue.
– fcbsd
Dec 20 '17 at 10:19












OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [::1] port 5555. debug1: connect to address ::1 port 5555: Connection refused debug1: Connecting to localhost [127.0.0.1] port 5555. debug1: connect to address 127.0.0.1 port 5555: Connection refused ssh: connect to host localhost port 5555: Connection refused Sorry I can't ident the script output CTRL+K is hijacked by Firefox to focus the address line.
– Roey
Dec 21 '17 at 15:26





OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [::1] port 5555. debug1: connect to address ::1 port 5555: Connection refused debug1: Connecting to localhost [127.0.0.1] port 5555. debug1: connect to address 127.0.0.1 port 5555: Connection refused ssh: connect to host localhost port 5555: Connection refused Sorry I can't ident the script output CTRL+K is hijacked by Firefox to focus the address line.
– Roey
Dec 21 '17 at 15:26
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f411045%2fssh-cannot-connect-to-qemu-arm-emulator%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f411045%2fssh-cannot-connect-to-qemu-arm-emulator%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?