summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-18 23:19:47 +0200
committerGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-18 23:19:47 +0200
commit69ce1bb94cbf651327bee1cc10157b578c88a279 (patch)
tree2b38999de1403464951126ca01159d4ff034543a
parentdcb683495e27dd297c10c2ce4f1877a87813fbe5 (diff)
Finally working ssh without login
-rwxr-xr-xrun3
-rw-r--r--ssh.conf2
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