diff options
| author | 2026-05-18 01:25:46 -0600 | |
|---|---|---|
| committer | 2026-05-18 01:25:46 -0600 | |
| commit | dc54a69b7552d8d44adf25b8009992c4a2b395be (patch) | |
| tree | 0c1864e9239bf02fc83408be378d983070250ead /addkey | |
init
Diffstat (limited to 'addkey')
| -rwxr-xr-x | addkey | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,8 @@ +#!/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 +/=:' | sed 's/^/restrict,pty /' - >>"$HOME/.ssh/authorized_keys" + +echo "New keys:" +cat -n "$HOME/.ssh/authorized_keys" |
