<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I am trying to accomplish this and am running into a couple of
      problems.  Following the instructions at:
<a class="moz-txt-link-freetext" href="https://www.linuxfoundation.org/blog/blog/classic-sysadmin-how-to-run-your-own-git-server">https://www.linuxfoundation.org/blog/blog/classic-sysadmin-how-to-run-your-own-git-server</a></p>
    <p>Specifically, the command $ <span id="hs_cos_wrapper_post_body"
        class="hs_cos_wrapper hs_cos_wrapper_meta_field
        hs_cos_wrapper_type_rich_text" style=""
        data-hs-cos-general-type="meta_field"
        data-hs-cos-type="rich_text">
        <pre>cat ~/.ssh/id_rsa.pub | ssh <a href="mailto:git@remote-server" class="moz-txt-link-freetext">git@remote-server</a> "mkdir -p ~/.ssh &amp;&amp; cat &gt;&gt;  ~/.ssh/authorized_keys"

fails  with the message bash: /home/git/.ssh/authorized_keys: Permission denied

</pre>
        Is this because the user git is not a sudoer? Strangely, the
        directory .ssh was created, but nothing else. I tried this
        twice. The first failure message was <br>
      </span></p>
    <p><span id="hs_cos_wrapper_post_body" class="hs_cos_wrapper
        hs_cos_wrapper_meta_field hs_cos_wrapper_type_rich_text"
        style="" data-hs-cos-general-type="meta_field"
        data-hs-cos-type="rich_text">bash:
        /home/git/.ssh/authorized_keys: No such file or directory</span></p>
    <p><span id="hs_cos_wrapper_post_body" class="hs_cos_wrapper
        hs_cos_wrapper_meta_field hs_cos_wrapper_type_rich_text"
        style="" data-hs-cos-general-type="meta_field"
        data-hs-cos-type="rich_text">Then I sudo touched the file into
        existence.  The second error was <br>
      </span></p>
    <p><span id="hs_cos_wrapper_post_body" class="hs_cos_wrapper
        hs_cos_wrapper_meta_field hs_cos_wrapper_type_rich_text"
        style="" data-hs-cos-general-type="meta_field"
        data-hs-cos-type="rich_text">
        <pre>bash: /home/git/.ssh/authorized_keys: Permission denied

</pre>
        The article leaves out some details, assuming one is a master of
        the art.  It does not tell you what user you are when you are
        ssh'd in.  Are you logged in as user git in both cases?  If so,
        why is he changing to /home/swapnil to create his directory?  Am
        I to create /home/bruce/project-1.git?<br>
      </span></p>
    <p><span id="hs_cos_wrapper_post_body" class="hs_cos_wrapper
        hs_cos_wrapper_meta_field hs_cos_wrapper_type_rich_text"
        style="" data-hs-cos-general-type="meta_field"
        data-hs-cos-type="rich_text">Is there a better article to set up
        password less ssh login?  And maybe setting up a master git
        repo?  I have a local git, but really want to have a dedicated
        server just do the repo.  Any hints or guidance would be
        helpful.  TIA.  I have multiple satellite computers that need
        common git managed code.<br>
      </span><span id="hs_cos_wrapper_post_body" class="hs_cos_wrapper
        hs_cos_wrapper_meta_field hs_cos_wrapper_type_rich_text"
        style="" data-hs-cos-general-type="meta_field"
        data-hs-cos-type="rich_text"></span></p>
    <p><span id="hs_cos_wrapper_post_body" class="hs_cos_wrapper
        hs_cos_wrapper_meta_field hs_cos_wrapper_type_rich_text"
        style="" data-hs-cos-general-type="meta_field"
        data-hs-cos-type="rich_text"></span></p>
  </body>
</html>