-
Notifications
You must be signed in to change notification settings - Fork 108
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
sudo: no tty present and no askpass program specified #7
Comments
I think that's because you aren't provide a user to ssh, so it would normally prompt you for one, but because it's not an interactive terminal, it can't. So you have to provide your programs with enough information or with the right options so they don't need to ask for input like that. |
sorry, it was hidden because I accidentally used < and >. The issue is that it wants to ask for sudo password, but can't. I just wanted to point this out because this command is in the main readme. |
Oh I see! Yes, that's problematic. |
Hmm; I can't think of a good way to fix this - I don't encounter this as I'm using passwordless sudo. Perhaps we could document around it or encourage use of a user with access to ~git/.ssh/authorized_keys? |
Maybe the init command can ensure authorized_keys gives global write permissions? |
In the context of dokku any user on the system is able to manipulate containers using docker so I can't see a downside right now to adding global write to We would also have to update documentation across the repositories by removing the sudo or ssh root@ recommendation for the |
ah, thanks for the quick responses everyone! |
I get
sudo: no tty present and no askpass program specified
when I try to
cat ~/.ssh/id_rsa.pub | ssh [user]@[domainname] "sudo gitreceive upload-key myname"
The text was updated successfully, but these errors were encountered: