Specify an SSH key for git push for a given Domain
Add Entry in .ssh/config
nano ~.ssh/config
Host git-as-paulligocki
HostName github.com
User git
IdentityFile /home/paul/.ssh/PaulLigocki
IdentitiesOnly yes
Add git remote
git remote add origin git@git-as-paulligocki:PaulLigocki/Sample-Repo.git
Related
- ~/.ssh/config Essentials
- /etc/ssh/sshd_config Essentials
- How to Enable SSH on Ubuntu
- Working With SSH Keys
- SSH Tunneling Essentials
- IP Tables Essentials
- YAML Essentials
- Create a Password Hash
- Hashing in Windows
- Git Essentials
- Nano Essentials
- DD Essentials
- How to Auto Start Applications in Ubuntu