#!/bin/bash
# Add a key (or keys) to your authorized_keys

[ -t 0 ] && echo "Paste in your authorized_keys content, then press ^D"
tr -dc 'a-zA-Z0-9 +/=:\n-' | sed 's/^/restrict,pty /' - >>"$HOME/.ssh/authorized_keys"

echo "New keys:"
"$HOME"/git-shell-commands/catkeys
