Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clipper asks for SSH password #94

Closed
rmdort opened this issue Mar 21, 2017 · 7 comments
Closed

clipper asks for SSH password #94

rmdort opened this issue Mar 21, 2017 · 7 comments

Comments

@rmdort
Copy link
Contributor

rmdort commented Mar 21, 2017

When i connect to clipper, even though i am providing the SSH key, clipper still asks for the password. This only happens once.

cm.Clipper(host, user, key)

Maybe something to do with Fabric api? I am not logging in as root, but the user has sudo permission

@dcrankshaw
Copy link
Contributor

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.

@rmdort
Copy link
Contributor Author

rmdort commented Mar 21, 2017

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

@dcrankshaw
Copy link
Contributor

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?

@rmdort
Copy link
Contributor Author

rmdort commented Mar 21, 2017

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.

@dcrankshaw
Copy link
Contributor

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)

@rmdort
Copy link
Contributor Author

rmdort commented Mar 21, 2017

Awesome. That will be great 👍 . Thank you.

@dcrankshaw
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants