2019.3.22 • Published 5 years ago

github-ssh v2019.3.22

Weekly downloads
1
License
Unlicense
Repository
-
Last release
5 years ago

npm.io

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 git@username.github.com:username/repo.git

Links