How to set apache user to access GitHub -


I'm trying to deploy GitHub on a shared web server, but the first step is:

  1. Set up your Apache user to reach Jitub.

    How is this done? How to do it at a loss? The documentation for the Apache-git-sync-tool goes into more details:

    Assume that the Apache user is at 'www-data' ('__www' on the Mac). You have to add your SSI public key to Jithub. If you have not generated the key, then you need to do it with the following command: sudo -hu www-data ssh-keygen -t rsa Thus, www / data users in /var/www/.ssh/ in general The id_rsa key will be generated for. You will see the location in the output. Passphrase should be left blank For successful generation, the / var / www / www-data user should have the facility of writing.

    I have tried some variations on that, while Apache server had SSHing, but there was no luck what happened here:

      [myusername @ webhosting -login01 ~] $ sudo -HU www-data ssh -T git@github.com sudo: unknown user: www-data sudo: Unable to initialize the policy plugin [myusername @ webhosting-login01 ~] $ sudo -Hu myusername ssh -T git@github.com Sorry, the user's myusername is not allowed to execute '/ usr / bin / ssh -T git @ github'. Com as myusername on webhosting-login01.mycompanydomain.com [Myusername @ webhosting-login01 ~] $ sudo -Hu __www ssh -T git@github.com Sudo: Unknown User: __www Pseudo: Unable to start the policy plugin [myusername @ webhosting-login01 ~] $ sudo -Hu __www ssh -T git@github.mycompanydomain.com sudo: unknown user: __www pseudo: unable to start the policy plugin   

    I'm not sure that I should have done it somewhere else? The enterprise version of Gitobb is different

    Converts the solution into ssh to apache As apache user to run the script and then click

    So if you have access, you should do it with __ www or www-data . In my case, the user is actually a hostname (which is the organization's subdomain).

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -