Giter Site home page Giter Site logo

clipper asks for SSH password about clipper HOT 7 CLOSED

ucbrise avatar ucbrise commented on August 27, 2024
clipper asks for SSH password

from clipper.

Comments (7)

dcrankshaw avatar dcrankshaw commented on August 27, 2024 1

I just filed https://clipper.atlassian.net/browse/CLIPPER-135 to track this.

from clipper.

dcrankshaw avatar dcrankshaw commented on August 27, 2024

Does it ask for the login password or the SSH key password? If the ssh key is password protected, the underlying Python SSH library will prompt for your password.

from clipper.

rmdort avatar rmdort commented on August 27, 2024

No. Its asking for the login password. Maybe its because you are running all remote commands as sudo?

from clipper.

dcrankshaw avatar dcrankshaw commented on August 27, 2024

Oh yeah that's likely it. We've mostly tested this on AWS where the default Ubuntu instances don't require a password for sudo. The problem is that the Docker commands require sudo, so it's independent of SSH access. Did this break things for you?

from clipper.

rmdort avatar rmdort commented on August 27, 2024

Oh i see. We mostly run docker without sudo privileges

https://github.com/sindresorhus/guides/blob/master/docker-without-sudo.md

It didnt break anything. Just that i didn't want to expose superuser in our python code when connecting to clipper.

The other option is adding the user to visudo to require NOPASSWD, which may be a security risk. Am not sure what is the right thing to do here. But would really wish that connecting to clipper can be seamless, as long as the user has the privileges to the server.

from clipper.

dcrankshaw avatar dcrankshaw commented on August 27, 2024

Yeah that totally makes sense. What if we modified clipper_manager so that you could specify whether sudo privileges were needed? If you're running Docker without sudo, then I don't think anything we do would need sudo privileges.

Something like:

clipper = clipper_manager.Clipper(host, user, keypath, sudo=False)

from clipper.

rmdort avatar rmdort commented on August 27, 2024

Awesome. That will be great πŸ‘ . Thank you.

from clipper.

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.