diff options
| -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" |
