commit 210240c6e7593b08a012af5c761a87d98afbd31a
parent 3e4663ec29806767b52cbbc2b7fb7edd6cf38f44
Author: Matthias Jaros <jaros@mailbox.org>
Date: Sat, 18 Oct 2025 23:19:47 +0200
Finally working ssh without login
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/run b/run
@@ -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"
diff --git a/ssh.conf b/ssh.conf
@@ -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