Skip to content

Creating and adding a new SSH key

Ben Rogerson edited this page Jan 30, 2019 · 6 revisions

For the 💫Database & 🎩Composer tasks in Swiff, a PEM format SSH key is required.

You can create a new SSH key that works with Swiff by:

  1. Create a new PEM key (empty passphrase) with ssh-keygen:
    ssh-keygen -m PEM -b 4096 -f /Users/[your-user]/.ssh/[new-key-filename]

  2. Then add the key to the server:
    ssh-copy-id /Users/[your-user]/.ssh/[new-key-filename] [username@host]

  3. Then specify the custom SSH key path in your project .env file with:
    SWIFF_CUSTOM_KEY="/Users/[your-user]/.ssh/[new-key-filename]"

  4. Run swiff --database to download the database from the remote server

Clone this wiki locally