Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
ssh-keyman.ps1
ssh-keyman.py

README.md

License: Apache 2.0

SSH Key Manager

This repo provides two scripts to manage your own SSH keys in Active Directory provided that you follow this blog post and this other blog post.

Usage

OS X & Linux

Install python-ldap as it is a requirement

pip install python-ldap

Now run the script and enter config info and your log in info, keeping in mind that your username should be your userPrincipleName ($username@corp.example.com)

$ python ssh-keyman.py

Config items you will be asked for will be stored in ~/.ssh-keyman. The can be cleared later on by using the --clear switch.

LDAP Server URI - The AD Server IP or FQDN
BASE DN - The top level OU where your user is located
SSH Key Attribute Name - The name of the attribute that holds your SSH keys in AD

Windows

This script requires an Administrator PowerShell prompt to execute. Please note that it will run under whatever user you are logged in as.

Run the script

.\ssh-keyman.ps

and provide the SSH Key Attribute name, SSH Host and key to be added.

Contributors

Maintainer

LasLabs Inc.

This module is maintained by LasLabs Inc.