Wayan Jimmy's Brain

Port Forwarding in Multipass using SSH

related
Multipass
link
Github Issue A Visual Guide to SSH Tunnels

Forward requests from multipass host (port 9000) to multipass instance (port 80)

sudo ssh \
      -i /var/root/Library/Application\ Support/multipassd/ssh-key/id_rsa \
      -L 9000:localhost:80 \
      multipass@<multipass instance ip>

access multipass instance (port 80) from any box that can access multipass host

curl <mutlipass host ip>:9000