GithubHelp home page GithubHelp logo

Comments (3)

pry0cc avatar pry0cc commented on May 20, 2024 3

It is a configuration mistake, check ~/.axiom/configs/authorized_keys and ensure your ssh pub key is in there.

Then run axiom-build again. It will be a setup issue when you first configured axiom. You need to ensure your ssh public key is in that file.

from axiom.

incredincomp avatar incredincomp commented on May 20, 2024

From my review of axiom-fleet, this looks to be the only way currently. Would need to add some stuff to a couple of the interact scripts, but in theory you should be able to use the axiom-configure ssh key concept:

if [ -f ~/.ssh/id_rsa.pub ] || [ -f ~/.ssh/id_ed25519.pub ]; then

Then if a fleet run option is chosen --ssh for instance, then set a flag during axiom-fleet here:

$AXIOM_PATH/interact/axiom-init $name --quiet --size=$slug --expire=$expiry &

then you would have to set up a new var in axiom-init

for var in "$@"; do

like:
if [[ "$var" =~ "--ssh" ]]; then do_key="$AXIOM_PATH/configs/authorized_keys" fi

Then inside of axiom-init, change this

doctl compute droplet create "$name" --image "$image_id" --size "$size" --region "$region" --wait --user-data-file "$AXIOM_PATH/tmp/$name.sh" 2>&1 >>/dev/null &

to some conditional thing with something like as the other option
doctl compute droplet create "$name" --image "$image_id" --size "$size" --region "$region" --ssh-keys "$do_ssh" --wait --user-data-file "$AXIOM_PATH/tmp/$name.sh" 2>&1 >>/dev/null &

I was thinking about adding this, but its kind of a big change to multiple scripts so I would def want @pry0cc approval before I spent any time on it personally. You should honestly be able to hack it together yourself though from this I hope, good luck!

from axiom.

YouGina avatar YouGina commented on May 20, 2024

That was it, I got it working :-)

Thank you for your answer!

from axiom.

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.