0.01
No commit activity in last 3 years
No release in over 3 years
Manage all your servers' auto login ssh-keys. One-command-line adding or removing any ssh-key for all servers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.6.2
>= 0
 Project Readme

SSH Key sync tool Readme

This tool is used to mass deploy ssh-keys to all your servers according to the config.

Usage

  1. gem install ssh-key-sync-man

  2. Put all your team members' keys into one available_public_keys directory

     available_public_keys/michael
     available_public_keys/jason
     available_public_keys/john
     available_public_keys/rose
     available_public_keys/ryan
    
  3. Add a server_list.yml, format like:

      GroupA:
        servers:
          - host: xxx.com
            user: app
          - host: aaa.com
            user: app
            alias: app_server
        users: [ jaon, ryan ]

      GroupB
        servers:
          - host: aaa.com
            user: db
            alias: db_master
        users: [ jaon, ryan, michael ]
(You can puts `available_public_keys` and `server_list.yml` at github, them people can add files by themselves)
  1. ssh-key-sync-man -g groupA

This will deploy the users' public keys which defined in server_list.yml to groupA servers

"alias" list -- linux shotcut command list auto generator

ssh-key-sync-man -a michael generate alias for michael.

Generate alias file for everyone, for example:

alias serverA_app1="ssh app@host"
alias serverB_app2="ssh app@host"
alias serverC_db="ssh app@host"
alias serverD_staging="ssh app@host"

You can copy and paste into your .bashrc or .bash_profile