diff options
| author | 2026-05-18 01:57:03 -0600 | |
|---|---|---|
| committer | 2026-05-18 01:57:03 -0600 | |
| commit | 24a4591a85630bfc848bbd7fb67fbac0f7883d4b (patch) | |
| tree | f0342a3a5c6e2f8e27c49500de74d19b8d5e3816 | |
| parent | add version and set term title (diff) | |
fix addkey
| -rwxr-xr-x | addkey | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ # 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" +tr -dc 'a-zA-Z0-9 +/=:\n-' | sed 's/^/restrict,pty /' - >>"$HOME/.ssh/authorized_keys" echo "New keys:" cat -n "$HOME/.ssh/authorized_keys" |
