Code Monkey home page Code Monkey logo

Comments (4)

ben-rogerson avatar ben-rogerson commented on July 18, 2024

Hey Sam, thanks for posting this error.

The dependency that Swiff uses for connecting via SSH requires a PEM format key (it'll read BEGIN RSA PRIVATE KEY in the file). MacOS now generates keys by default in OPENSSH format (BEGIN OPENSSH PRIVATE KEY).

Here's how to generate a new key in the right format and use it to connect with Swiff:

  1. Generate a PEM key (4096 bits) with this command:
    ssh-keygen -m PEM -b 4096 -f [key-filename] -C "[youremail]"
    -C "[youremail]" is optional but remember to choose an empty passphrase when generating the key

  2. Specify the path to the file in your project .env file like this:
    SWIFF_CUSTOM_KEY="/Users/[your-user]/.ssh/[key-filename]"

  3. Run swiff in your project, choose a task and you'll see a ssh-copy-id command to run which will copy your key to the server

Let me know if you have any issues.

from swiff.

ben-rogerson avatar ben-rogerson commented on July 18, 2024

I'll also add a more descriptive error for other users.

from swiff.

samhibberd avatar samhibberd commented on July 18, 2024

Brilliant, works really well.

from swiff.

ben-rogerson avatar ben-rogerson commented on July 18, 2024

Good to hear!

from swiff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.