diff options
| author | 2025-10-18 23:19:47 +0200 | |
|---|---|---|
| committer | 2025-10-18 23:19:47 +0200 | |
| commit | 378c85a0277696068046e62445419795dd710051 (patch) | |
| tree | 2b38999de1403464951126ca01159d4ff034543a | |
| parent | 5724d7dbb25440d5e0901f7eac2949466df5fdcf (diff) | |
Finally working ssh without login
| -rwxr-xr-x | run | 3 | ||||
| -rw-r--r-- | ssh.conf | 2 |
2 files changed, 3 insertions, 2 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" @@ -9,7 +9,7 @@ HostKey /var/keys/etc/ssh/ssh_host_ed25519_key SyslogFacility AUTH LogLevel INFO -#PermitTTY yes +PermitTTY no #AllowAgentForwarding yes # Example of overriding settings on a per-user basis |
