diff options
| author | 2025-10-18 23:19:47 +0200 | |
|---|---|---|
| committer | 2025-10-18 23:19:47 +0200 | |
| commit | 69ce1bb94cbf651327bee1cc10157b578c88a279 (patch) | |
| tree | 2b38999de1403464951126ca01159d4ff034543a /run | |
| parent | dcb683495e27dd297c10c2ce4f1877a87813fbe5 (diff) | |
Finally working ssh without login
Diffstat (limited to 'run')
| -rwxr-xr-x | run | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,7 +7,8 @@ or exit 1; for user in (string split ',' $_flag_u) echo "Setting up user: $user" set -l HOME "/home/$user" - adduser --home $HOME -D "$user" + adduser --home $HOME -D "$user" --shell "/usr/bin/git-shell" + passwd -u "$user" mkdir "$HOME/.ssh" cp "/var/keys/$user/authorized_keys" "$HOME/.ssh/" chown -R $user "$HOME" |
