| Q | A
| ----------------- | ---
| Issue Type | Question
| Deployer Version | 4.2.1
| Local Machine OS | Ubuntu 16.04
| Remote Machine OS | Ubuntu 16.04
Is it possible to deploy to a server, as another user then the one you SSH in as? The reason I'm asking is because in my current setup, it would be easier if I could use one user for the SSH, and then just su - deployuser and then deploy.
This means I don't have to add my SSH-key to every single user I want to deploy as.
I've tried to create a task and run su - deployuser but that doesn't seem to work.
That's not possible for now, but definitely will be in next Deployer v5.
Done in 5 beta
How does this work?
Most helpful comment
https://deployer.org/docs/hosts#become