Skip to content

Quick helper for copying in your GitHub ssh keys into a remote host.

Notifications You must be signed in to change notification settings

vpetersson/copy-ssh-keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0090db4 · Nov 23, 2022

History

3 Commits
Nov 23, 2022
Nov 23, 2022
Nov 23, 2022

Repository files navigation

Install SSH Keys

This is a little helper to make it easy to install your public SSH keys from GitHub onto a remote server.

All you need to do is to add the following function to your ~/.bashrc/~/.zshrc:

function install-ssh-key(){
    docker run -rm -ti vpetersson/copy-ssh-keys \
        ansible-playbook -i $1, --ask-pass -u $2 /root/playbook.yml
}

Then invoke it by running install-ssh-keys host user.

Note that this is hard coded to my keys, but you can modify it to yor own needs.

About

Quick helper for copying in your GitHub ssh keys into a remote host.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published