-
Notifications
You must be signed in to change notification settings - Fork 458
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
[Kamal 2] Error: Permission denied (publickey) only for interactive commands #1053
Comments
I just hit the same issue a few minutes ago and trying to debug. If I'm able to fix it or identify the issue, I'll ping back |
Ditto. Looks like something breaks when |
I am also having same issue |
look here #218 (comment) |
This also seems related to using a custom key in your ssh section of the kamal configuration in my case.
|
For me happens the same error running in kamal 2.2.2, not only for the interactive command. My hotfix is run |
I managed (after a few hiccups) to successfully deploy my Rails app to an Ubuntu 24.04 server. The user Im using is ubuntu, and it works fine after I added it to the docker group. I can deploy and I can even run kamal commands remotely like:
however, running any of the interactive commands: kamal console, kamal logs, fails with Permission denied (publickey). The SSH .pem file Im using has to be fine, otherwise it would not work with any commands.
These are the relevant parts of my deploy.yml
In my Dockerfile, I switched from the default rails user to ubuntu:
but it did not fix the issue.
The text was updated successfully, but these errors were encountered: