Skip to main content

macos/unlock_keychain

1#!/usr/bin/env bash
2# Unlock my login keychain.
3#
4# The login keychain normally gets unlocked by the OS when you log
5# into your account; this is for when I'm accessing a Mac over SSH.
6# Note: this prompts for the keychain password.
8security unlock-keychain ~/Library/Keychains/login.keychain