On Tue, Apr 14, 2020 at 8:30 pm, Svante Signell <svante.signell@gmail.com> wrote:
On Tue, 2020-04-14 at 23:34 +0530, Pirate Praveen wrote:> Pirate Praveen, le mar. 14 avril 2020 21:48:17 +0530, a ecrit: > Since I can't ssh into it yet, I can't share the logs. I have > installed openssh-server on the vm but I can't ssh into vm from my > host. I'm trying to ssh 10.0.2.15That address is to access the host from the guest!
$ inetutils-ifconfig /dev/eth0 (2): inet address 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 flags UP BROADCAST RUNNING ALLMULTI MULTICAST mtu 1500 link encap Ethernet hardware addr 52:54:00:12:34:56
How do you run your VM? A simple example to log in to your guest box from the host a simple way to log in with ssh -p5556 localhost is to add to the qemu-system-x86_64 command line : -net nic,model=e1000 -net user,hostfwd=tcp::5556-:22
Thanks, with this I can ssh now.I think this will be a useful addition to the docs so I sent this https://salsa.debian.org/webmaster-team/webwml/-/merge_requests/433
HTH!