Installation
$ [sudo] pip install github-ssh
$ [sudo] npm i -g github-ssh
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
Features
github multiple ssh keys
Config
~/.ssh/config
Host *
Include config.d/*
Include config.d/*/*
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 git@username.github.com:username/repo.git