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

ppshobi's avatar

Does anybody know how to store private ssh keys securely like the forge.laravel.com does?

Hi. I want to store private ssh keys and secrets similar to the contents of .env file in laravel. So that my app can login and execute commands on other peoples servers. Does anybody know how laravel forge does it?

0 likes
4 replies
Sinnbeck's avatar

If people gain access to the storage folden somehow, then yes. But the storage folder isn't publicly available

1 like
bugsysha's avatar

Laravel is un-secure as much as you make it. Out of the box, it is very secure. Even with known bugs, hardly any sites are exploited unlike other frameworks like WP.

Please or to participate in this conversation.