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
Missing access permissions to ~/.ssh/ folder on executing deployer/deployer package #1337
Comments
deployer/deployer
package
Deployer is executing remote commands like this
A workaround in order to avoid using
|
I have to confess I've never seen usages like this, and have never heard of a client needing to write to .ssh. I'd have second thoughts about using a tool like that. However, all you need to solve it is a post-start hook that does something like The web container doesn't do anything with /root/.ssh except put the config there. |
Thanks for your feedback, changing ownership inside the container is fine and your feedback that nothing else is using SSH multiplexing is described here in more detail (Deployer just makes use of this OpenSSH feature): This issue can be closed. Maybe it helps others facing similar scenarios. |
I think it won't be too long before we'll have a properly named and permissioned user inside the web container, and then this wouldn't have been an issue. I think it's fine to leave this open and we'll sneak in at least setting permissions on /root/.ssh in the start script. |
I indeed had this problem today (unrelated to ddev, but using deployer on GitHub Actions) and your answer helped me, thanks @ohader ! 👍 |
Describe the bug
Using Composer package
deployer/deployer
within DDEV docker container fails due to missing access permissions on/home/~.ssh/deployer_*
(which is used asControlPath
when establishing SSH connections to remote servers).The according error message looks like
To Reproduce
Steps to reproduce the behavior:
composer require --dev deployer/deployer:^6.3
deploy.php
in project root directory containing minimal scenariovendor/bin/dep deploy
unix_listener: cannot bind to path: /home/.ssh/deployer_*
Expected behavior
Probably(!) the
/home/.ssh
directory should be writable for internal container users.Screenshots
none
Version and configuration information
db drud/ddev-dbserver:v1.4.0
dba drud/phpmyadmin:v1.4.0
router drud/ddev-router:v1.4.0
commit v1.4.1
cli v1.4.1
web drud/ddev-webserver:v1.4.0
ddev-ssh-agent drud/ddev-ssh-agent:v1.4.0
domain ddev.local
The text was updated successfully, but these errors were encountered: