GithubHelp home page GithubHelp logo

Comments (2)

ben-joostens avatar ben-joostens commented on May 18, 2024 4

Ah, I see, I was hoping that there were no keys involved since it requires an access token. In fact, that was exactly why I was trying to use it. Thanks for the suggestion, I'll switch to an SSH action.

from action-doctl.

andrewsomething avatar andrewsomething commented on May 18, 2024

In order to SSH into a Droplet, doctl needs access to the private half of the SSH key pair whose public half is on the Droplet. Currently the doctl Action is based on a Docker container. If you were using the Docker container directly, you could invoke it with:

docker run --rm --interactive --tty \
  --env=DIGITALOCEAN_ACCESS_TOKEN=<YOUR-DO-API-TOKEN> \
  -v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa \
  digitalocean/doctl compute ssh <DROPLET-ID>

in order to mount the SSH key from outside the container.

You might be better off just using doctl to grap the Droplet's IP address and using this Action that is more focused on SSH related use cases and provides a lot of additional functionality: https://github.com/marketplace/actions/ssh-remote-commands

from action-doctl.

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.