github-ssh
v2019.3.22
Published
github multiple ssh keys
Downloads
2
Readme
github multiple ssh keys
Installation
$ [sudo] pip install github-ssh
Features
github multiple ssh keys
How it works
- creates ssh key files, ssh config file, copies public key to clipboard and opens github settings -> SSH keys
- skip if ssh key exists and works
~/.ssh/config
Host *
Include config.d/*
Include config.d/*/*
CLI
usage: github-ssh username
Examples
$ github-ssh username
created files:
~/.ssh/github/id_rsa_github_username
~/.ssh/github/id_rsa_github_username.pub (add to github settings -> SSH keys)
~/.ssh/config.d/github/username.github.com
$ cd path/to/repo
$ git remote add github [email protected]:username/repo.git