I have a server example.com
. I need to run command to build Satis. I added file index.php, where I wrote <?php echo (' <command for satis build> ');
.
When I execute this command on the server, I enter the login and password for GitLab. And I do it under my user (user-example
). But when I open example.com
in web browser, I see an error:
Host key verification failed.
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
This happened because the script runs under the user www-data
.
So, for my user user-example
I can create ssh-keys and use it for GitLab, but can I create ssh-keys for user www-data
? Is it security or not? If I shouldn't do this, how can I update Satis using web browser (using URL)?