0

i can't connect to the virtual machine via SSH. The diagram shows the network and it's connections. On the ubuntu-virtual-machine, the SSH-Server is running. Do i need to enter (with the ubuntu machine) our Windows-Workgroup to get this done? On the windows server machine an inbound rule for port 22 exists an allows connections (i dont know if it is even necessary).

diagram network adapters ubuntu port and ip address virtual switch

Answers to djomi's questions:

  1. yeah, i can ping from guest to host and client/host and client/guest and vice versa
  2. ssh on localhost works fine (in VM)
  3. see images

iptables 1 iptables 2 iptables 3 iptables 4

  • 2
    can you ping the host, Internet and vise versa from the the vm? ususally it should work in case that the ssh server is installed and active. Check that first try to ssh on the Linux Box itself to See if Theresa a Response and pls list iptables -L - n – djdomi Aug 14 at 10:11
  • i made changes to my post – louis12356 Aug 14 at 11:57
  • You didn't answer the question if your guest can access the internet (or maybe you don't need to). Check if sudo ufw allow ssh in the ubuntu box makes a difference. You don't need an inbound rule in your Hyper-V-host's firewall. – Lenniey Aug 14 at 12:00
  • Ah dude, you saved my day. This rule was not set - works fine now... Thank you! – louis12356 Aug 14 at 12:02
1

For some reason your ufw installation is not allowing ssh connections. You should simply allow them:

sudo ufw allow ssh

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.