From 69ce1bb94cbf651327bee1cc10157b578c88a279 Mon Sep 17 00:00:00 2001 From: Matthias Lucas Jaros Date: Sat, 18 Oct 2025 23:19:47 +0200 Subject: Finally working ssh without login --- run | 3 ++- ssh.conf | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/run b/run index d167007..44f505e 100755 --- 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 index 0cc5302..20d5f99 100644 --- 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 -- cgit v1.3.1