-
Notifications
You must be signed in to change notification settings - Fork 5
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:
-
Create a new PEM key (empty passphrase) with ssh-keygen:
ssh-keygen -m PEM -b 4096 -f /Users/[your-user]/.ssh/[new-key-filename]
-
Then add the key to the server:
ssh-copy-id /Users/[your-user]/.ssh/[new-key-filename] [username@host]
-
Then specify the custom SSH key path in your project .env file with:
SWIFF_CUSTOM_KEY="/Users/[your-user]/.ssh/[new-key-filename]"
-
Run
swiff --database
to download the database from the remote server