-
Notifications
You must be signed in to change notification settings - Fork 280
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
Comments
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. |
No. Its asking for the login password. Maybe its because you are running all remote commands as |
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? |
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. |
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) |
Awesome. That will be great 👍 . Thank you. |
I just filed https://clipper.atlassian.net/browse/CLIPPER-135 to track this. |
When i connect to clipper, even though i am providing the SSH key, clipper still asks for the password. This only happens once.
Maybe something to do with Fabric api? I am not logging in as root, but the user has sudo permission
The text was updated successfully, but these errors were encountered: