From 24a4591a85630bfc848bbd7fb67fbac0f7883d4b Mon Sep 17 00:00:00 2001 From: steering7253 Date: Mon, 18 May 2026 01:57:03 -0600 Subject: fix addkey --- addkey | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addkey b/addkey index e8bda98..6926249 100755 --- a/addkey +++ b/addkey @@ -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" -- cgit v1.3.1-10-gc9f91