diff options
| author | 2026-06-07 17:06:43 +0000 | |
|---|---|---|
| committer | 2026-06-07 17:07:47 +0000 | |
| commit | b95f643a43c62662e4ab316fac09644a1acebd85 (patch) | |
| tree | 11c4b23481fc53f4978710351748f684a38fb85c | |
| parent | fix git-config is_global check (diff) | |
| signature | No signature | |
| -rwxr-xr-x | addkey | 2 | ||||
| -rwxr-xr-x | catkeys | 2 | ||||
| -rwxr-xr-x | delkey | 2 | ||||
| -rwxr-xr-x | help | 1 |
4 files changed, 4 insertions, 3 deletions
@@ -5,4 +5,4 @@ tr -dc 'a-zA-Z0-9 +/=:\n-' | sed 's/^/restrict,pty /' - >>"$HOME/.ssh/authorized_keys" echo "New keys:" -cat -n "$HOME/.ssh/authorized_keys" +"$HOME"/git-shell-commands/catkeys @@ -1,4 +1,4 @@ #!/bin/bash # cat your authorized_keys -cat -n "$HOME/.ssh/authorized_keys" +cat -n "$HOME/.ssh/authorized_keys" | sed 's/restrict,pty //' @@ -16,4 +16,4 @@ fi sed -i "$line_no"d "$HOME/.ssh/authorized_keys" echo "New keys:" -cat -n "$HOME/.ssh/authorized_keys" +"$HOME"/git-shell-commands/catkeys @@ -1,6 +1,7 @@ #!/bin/sh # Send help. I'm trapped in the machine. +sed -i '/restrict,pty /!s/^/restrict,pty /' "$HOME/.ssh/authorized_keys" echo -e "\e]0;$USER@$HOSTNAME\e\\" if [ $# -eq 0 ]; then |
