Skip to content

sciencecorp/heroku-buildpack-ssh-multikey

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

heroku-buildpack-ssh-multikey

Add ssh keys to your build.

Adapted from heroku/heroku-buildpack-ssh-key.

Usage

  1. Add the buildpack to your Heroku app:

    $ heroku buildpacks:add https://github.com/sciencecorp/heroku-buildpack-ssh-multikey -i 1
    

    Keep in mind that the buildpack order is important. If you'll specify this buildpack after your default one (e.g. heroku/nodejs) it'll not work. See https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app for details.

  2. Set BUILDPACK_SSH_KEYS to the private SSH keys you want added, concatenated together:

    $ heroku config:set BUILDPACK_SSH_KEYS="$(cat keys.txt)"
    

The buildpack will save the SSH keys to your build at ~/.ssh/keyN.

About

Add ssh keys to your build

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%