User Tools

Site Tools


wiki:git_pull_via_ssh_public_key

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:git_pull_via_ssh_public_key [2022/03/14 14:35] – [See also] add new link antisawiki:git_pull_via_ssh_public_key [2024/01/30 11:50] (current) – add custom host example antisa
Line 24: Line 24:
 </code> </code>
  
 +==== Use different host ====
 +You can use a custom hostname as well, e.g.
 +
 +
 +<code>
 +Host github-someorg
 +        HostName github.com
 +    IdentityFile ~/.ssh/myuser_github
 +</code>
 +
 +Then to clone use that host
 +
 +  git clone git@github-someorg:someuser/repo.git
 +  
 ====== Tested on ====== ====== Tested on ======
   *    * 
wiki/git_pull_via_ssh_public_key.1647264917.txt.gz · Last modified: 2022/03/14 14:35 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki