Skip to content

Instantly share code, notes, and snippets.

View davidsommer's full-sized avatar

David Sommer davidsommer

View GitHub Profile
@davidsommer
davidsommer / sshConnector.sh
Last active May 12, 2020 12:57
Connect Script to connect to SSH with a Password fetched from OSX Keychain
#!/bin/bash
if [ "$1" == "-h" ]; then
echo " To run this script, you need the following things:"
echo " * Install sshpass "
echo " brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb"
echo " * generate a generic password in your keychain"
echo " Usage: add-generic-password [-a account] [-s service] [-w password] [options...] [-A|-T appPath] [keychain]"
echo " -a Specify account name (required)"
echo " -c Specify item creator (optional four-character code)"