diff options
Diffstat (limited to 'src/gitolite/bin/entrypoint.sh')
| -rwxr-xr-x | src/gitolite/bin/entrypoint.sh | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gitolite/bin/entrypoint.sh b/src/gitolite/bin/entrypoint.sh index ac240d0..7dc0075 100755 --- a/src/gitolite/bin/entrypoint.sh +++ b/src/gitolite/bin/entrypoint.sh @@ -35,11 +35,6 @@ if [ "${1}" = 'sshd' ]; then [ -f $keyfile ] || ssh-keygen -q -N '' -f $keyfile -t $algorithm grep -q "HostKey $keyfile" /etc/ssh/sshd_config || echo "HostKey $keyfile" >> /etc/ssh/sshd_config done - # Disable unwanted authentications - # perl -i -pe 's/^#?((?!Kerberos|GSSAPI)\w*Authentication)\s.*/\1 no/; s/^(PubkeyAuthentication) no/\1 yes/' /etc/ssh/sshd_config - # Disable sftp subsystem - perl -i -pe 's/^(Subsystem\ssftp\s)/#\1/' /etc/ssh/sshd_config - perl -i -pe 's/^(AcceptEnv\s)/#\1/' /etc/ssh/sshd_config fi # Fix permissions at every startup |