All Projects → google → Sshkey Audit

google / Sshkey Audit

Licence: apache-2.0
Automate SSH key management

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Sshkey Audit

Exscript
A Python module making Telnet and SSH easy
Stars: ✭ 337 (+512.73%)
Mutual labels:  automation, network, ssh
Vssh
Go Library to Execute Commands Over SSH at Scale
Stars: ✭ 707 (+1185.45%)
Mutual labels:  automation, network, ssh
Wordmove
Multi-stage command line deploy/mirroring and task runner for Wordpress
Stars: ✭ 1,791 (+3156.36%)
Mutual labels:  automation, ssh
Assh
💻 make your ssh client smarter
Stars: ✭ 2,340 (+4154.55%)
Mutual labels:  automation, ssh
Deployr
A simple golang application to automate the deployment of software releases.
Stars: ✭ 282 (+412.73%)
Mutual labels:  automation, ssh
Napalm Salt
Modules for event-driven network automation and orchestration using Salt
Stars: ✭ 116 (+110.91%)
Mutual labels:  automation, network
Penta
Open source all-in-one CLI tool to semi-automate pentesting.
Stars: ✭ 130 (+136.36%)
Mutual labels:  automation, network
Netdev
Asynchronous multi-vendor library for interacting with network devices
Stars: ✭ 172 (+212.73%)
Mutual labels:  automation, network
Goexpect
Expect for Go
Stars: ✭ 538 (+878.18%)
Mutual labels:  automation, ssh
Jok3r
Jok3r v3 BETA 2 - Network and Web Pentest Automation Framework
Stars: ✭ 645 (+1072.73%)
Mutual labels:  automation, network
Sshkit.ex
An Elixir toolkit for performing tasks on one or more servers, built on top of Erlang’s SSH application.
Stars: ✭ 108 (+96.36%)
Mutual labels:  automation, ssh
Bash Toolkit
Este proyecto esá destinado a ayudar a los sysadmin
Stars: ✭ 13 (-76.36%)
Mutual labels:  automation, network
Netshot
Network Configuration and Compliance Management
Stars: ✭ 91 (+65.45%)
Mutual labels:  automation, network
Td4a
Template designer for automation
Stars: ✭ 139 (+152.73%)
Mutual labels:  automation, network
Vkbot
Простой разговорный бот на PHP
Stars: ✭ 88 (+60%)
Mutual labels:  automation, network
Ansible For Network Engineers
Репозиторий книги "Ansible для сетевых инженеров". Книга в процессе переноса на readthedocs и обновления содержания на Ansible 2.9!
Stars: ✭ 74 (+34.55%)
Mutual labels:  automation, network
Cisco ios
Ansible Network Cisco IOS Provider Role
Stars: ✭ 72 (+30.91%)
Mutual labels:  automation, network
Pynms
A vendor-agnostic NMS for carrier-grade network simulation and automation
Stars: ✭ 73 (+32.73%)
Mutual labels:  automation, network
Fatt
FATT /fingerprintAllTheThings - a pyshark based script for extracting network metadata and fingerprints from pcap files and live network traffic
Stars: ✭ 490 (+790.91%)
Mutual labels:  network, ssh
Diffios
Cisco IOS diff tool
Stars: ✭ 23 (-58.18%)
Mutual labels:  automation, network

sshkey-audit

This is not an official Google product.

Example

$ cat keys.txt
ssh-rsa AAAAAhuteonhuneo… my-awesome-laptop
ssh-rsa AAAAhtuhsotiesi…  [email protected]
ssh-rsa AAAAhtuhutnuheo…  [email protected]
ssh-rsa AAAAhtuhuueoueo…  [email protected]

$ cat groups.txt
home    my-awesome-laptop [email protected]
work    [email protected]  [email protected]
laptops my-awesome-laptop [email protected]

$ cat accounts.txt
[email protected]                                  @home
[email protected]                               @work
[email protected]                               @laptops  [email protected]
[email protected]                                  @home @work @laptops
[email protected]:/etc/dropbear/authorized_keys @home

$ go get github.com/sirupsen/logrus
$ go build sshkey-audit.go
$ ./sshkey-audit --keys=keys.txt --groups=groups.txt --accounts=accounts.txt expand
[email protected]
  [email protected]
  my-awesome-laptop
[email protected]
  [email protected]
  my-awesome-laptop
  [email protected]
[email protected]
  [email protected]
  [email protected]
  my-awesome-laptop
[email protected]
  [email protected]
  [email protected]
  my-awesome-laptop
[email protected]
  [email protected]
  my-awesome-laptop

$ ./sshkey-audit --keys=keys.txt --groups=groups.txt --accounts=accounts.txt check
[… tool logs in to all accounts and checks that this is correct …]

$ ./sshkey-audit --keys=keys.txt --groups=groups.txt --accounts=accounts.txt --add_missing check
[… tool logs in to all accounts and adds any missing keys  …]

$ ./sshkey-audit --keys=keys.txt --groups=groups.txt --accounts=accounts.txt --delete_extra check
[… tool logs in to all accounts and deletes any extraneous keys  …]

$ # the 'fix' command is equal to 'check' with --add_missing and --delete_extra.

Adding the [email protected] key to allow logging in to [email protected] can sometimes be useful to ssh localhost.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].