I have now fixed it. But I think there must be an other way to make it safe. Maybe a sandbox
root:censored
We can still read /etc/ssh/ssh_host_rsa_key, etc.Edit: removed hash, sorry
Can you show us how you read the content of the file. Just want to learn more
Please, don't ever run your application code as root. Less so when it's facing the Internet.