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

Next revision
Previous revision
wiki:git_pull_via_ssh_public_key [2021/03/30 13:18] – created 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 ======
   *    * 
  
 ====== See also ====== ====== See also ======
 +  * [[wiki:clone_remote_ansible_git_module_using_ssh_key|Clone remote repository with ansible git module using ssh key]]
 ====== References ====== ====== References ======
  
  
wiki/git_pull_via_ssh_public_key.1617103135.txt.gz · Last modified: 2021/03/30 13:18 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