laravel / forge-cli

The Laravel Forge CLI.
https://forge.laravel.com
MIT License
227 stars 35 forks source link

SSHing in as the isolated PHP user in an isolated environment #31

Closed lasseeee closed 3 years ago

lasseeee commented 3 years ago

As of now there is no way to log in as an isolated PHP user using the Forge CLI, as there is no option to select the SSH user on the fly. It would be great to override the "forge" user by doing something like: forge ssh mywebserver --user=examplecom, as the forge user doesn't have permissions to edit files for isolated users, naturally. I could of course su..

lasseeee commented 3 years ago

I could prefix commands with sudo but it messes with file ownership and permission. I've reverted to SSHing into the servers manually as the isolated users - for anyone else having this issue.

nunomaduro commented 3 years ago

Going to check this, and merge the pull request if approved.