SSH connection to an instance

First: finishing up config with SSH may not work as well as you want. If the VM ever crashes or is rescheduled, it will come up from the Dockerfile. We’re happy to help configure from the Dockerfile though if you’re stuck, we have more experience than we’d like doing that. :smiley:

Second: SSH is more complicated than we’d like. You will need to:

  1. Connect to your private network with wireguard:
    1. flyctl wireguard create
    2. Setup wireguard to use the generated config
  2. Get an SSH certificate
    1. flyctl ssh establish (this configures the root organization cert, you only need to run it once)
    2. flyctl ssh issue --agent
  3. Get private IP of VM: flyctl ips private
  4. SSH to it: ssh root@<private-ip>

This assumes you’re running an ssh agent, if you’re not, you can run flyctl ssh issue without that arg and follow some extra steps.

We are shipping a one command way to connect to running VMs real-soon-now.

3 Likes