Skip to contentSkip to conversation

ssh access from a Windows Host

Qemu-devel Helmut Auer 3 participants 3 messages Aug 25, 2005 – Aug 26, 2005

lore
Share & tools
lore
#0 lore raw

Hi List,

I tried to access the linux 2.6 client from the windows host via ssh using putty. therfore I started:
qemu -user-net -redir tcp:5555::22 ...
the sshd is started on the client, but
putty -ssh localhost 5555
does not work. Also using the own IP address instead of localhost does not help. Any hints what I am doing wrong ?

Signature · 1 line
Helmut Auer, [email protected] 
#1 lore raw

Helmut Auer schreef:

Quoted 12 lines

Hi List,

I tried to access the linux 2.6 client from the windows host via ssh using putty.
therfore I started:
qemu -user-net -redir tcp:5555::22 ...
the sshd is started on the client, but
putty -ssh localhost 5555
does not work. Also using the own IP address instead of localhost does not help.
Any hints what I am doing wrong ?

This is maybe the same problem I reported on 8 sep 2004 in
http://lists.gnu.org/archive/html/qemu-devel/2004-09/msg00188.html

The guest operating system receives IP packets with sending address 127.0.0.1 and tries to answer them via its own loopback interface instead of the ne2000 interface to the host.

My patch detects this 127.0.0.1 address in the host-to-client direction and replaces it with the address 10.0.2.2.

WARNING, the message I referenced has an attachment that repeats the patches for slirp/slirp.c and slirp/misc.c correcting this problem, but also adds a patch to correct a broadcast bug in slirp/udp.c and adds the option to start in full-screen mode to vl.c, vl.h and sdl.c.

Please do *NOT* apply the part of the patch for the files: "vl.c, vl.h and sdl.c" since the full-screen option is already included in the current version of qemu. (The slirp/udp.c patch is safe, and even recommended since it corrects an old bug.)

see also:
http://lists.gnu.org/archive/html/qemu-devel/2004-08/msg00443.html

regards,
Mark.

Signature · 1 line
:wq
#2 lore raw
In reply to Helmut Auer
Quoted 10 lines · Helmut Auer

Hi List,

I tried to access the linux 2.6 client from the windows host via ssh using putty. therfore I started:
qemu -user-net -redir tcp:5555::22 ...
the sshd is started on the client, but
putty -ssh localhost 5555
does not work. Also using the own IP address instead of localhost does not help. Any hints what I am doing wrong ?

What is your guestOS's IP address? If it is 10.0.2.16, options should be

qemu.exe -user-net -redir tcp:5555:10.0.2.16:22 ...

Regards,
Kazu