Skip to content

Instantly share code, notes, and snippets.

@mw866
Last active March 6, 2026 05:52
Show Gist options
  • Select an option

  • Save mw866/28386994fc1c115e95c749ff5276dd78 to your computer and use it in GitHub Desktop.

Select an option

Save mw866/28386994fc1c115e95c749ff5276dd78 to your computer and use it in GitHub Desktop.
multipass
# https://multipass.run/install
multipass launch
multipass start
multipass stop
multipass list
multipass shell
# Set up SSH into mulitpasss VM e.g. as development VM
multipass shell
vim .ssh/authorized_keys
## Copy you personal SSH public key on your local dev machine
export IP=$(multipass info --format json | jq -r ".info.primary.ipv4[0]")
ssh ubuntu@$ip adddress above
multipass shell
vim .ssh/authorized_keys
## Copy you personal SSH public key on your local dev machine
IP=$(multipass info --format json | jq -r ".info.primary.ipv4[0]")
ssh ubuntu@$IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment