Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

EliasSoares's avatar

Envoyer.io access problem using user different from Forge

Hi, I'm setting up a new project on forge, but I'm setting up it with an isolated user, for obvious security reasons.

The problem is that I created the user xyz, added the envoyer's (and my own) public key to authorized_keys file on /home/xyz/.ssh/authorized_keys file.

I can access normally this user on my local machine, no error. But when trying to push, Envoyer.io returns me:

Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).

Looks like for some reason, envoyer is trying to access ssh using a password, but it's disabled and I never typed in any password to forge.

Could someone please give-me some help about this?!

0 likes
6 replies
EliasSoares's avatar

Looking at /var/log/auth.log i found this:

Jun 10 20:01:01 host-name CRON[2417]: pam_unix(cron:session): session opened for user forge by (uid=0)
Jun 10 20:01:01 host-name CRON[2417]: pam_unix(cron:session): session closed for user forge

Just at the time I request a "Server test" on Envoyer.io. So, envoyer is using the wrong username to access?

ejdelmonico's avatar

Did you add the Envoyer key to the forge site under the SSH tab?

EliasSoares's avatar

I'm not using forge anymore. I added the envoyer ssh key manually by adding it on authorized_keys file on my new user. Same procedure I used to add my dev. Machine ssh key and worked fine.

EmilMoe's avatar

Jeffrey is not the author of Envoyer.

And you are sure there's no key associated to the Envoyer key? Maybe regenerate the key and see if it solves it.

EliasSoares's avatar

@EmilMoe, I'm sure that the Envoyer Pub key for this project is correctly setup on the user.

The logs shows that Envoyer is trying to login using forge user instead of my new xyz user. I've received a mail from Otwell, I write here the solution if found.

Thanks

Please or to participate in this conversation.