perobertson / heroku-buildpack-ssh

Heroku buildpack for adding a private ssh key to all your dynos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku Buildpack: SSH

Sets a ssh private key from an environment variable. It can also set the known hosts files by using ssh-keyscan for a list of hosts.

Usage

Set SSH_KEY variable to private key:

heroku config:set SSH_KEY="$(cat /path/to/id_rsa)" > /dev/null
heroku config:set SSH_KEY_PUB="$(cat /path/to/id_rsa.pub)"

(Optional) set SSH_KNOWN_HOSTS to run ssh-keyscan against and add to the known hosts file.

heroku config:set SSH_KNOWN_HOSTS="github.com bitbucket.com"

Add the buildpack to your app:

heroku buildpacks:add https://github.com/perobertson/heroku-buildpack-ssh

About

Heroku buildpack for adding a private ssh key to all your dynos

License:MIT License


Languages

Language:Shell 100.0%