summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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