From 9028f6d3c0d93408826c0abc541364de63db6d6e Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Thu, 24 Aug 2023 19:02:10 +0000 Subject: [PATCH] removed deprecated sshd config option, added setting for git cred caching. --- one-time-stuff/basic-settings.sh | 10 ++++++++++ one-time-stuff/conf/sshd_config.conf | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/one-time-stuff/basic-settings.sh b/one-time-stuff/basic-settings.sh index c7915eb..14c33bc 100755 --- a/one-time-stuff/basic-settings.sh +++ b/one-time-stuff/basic-settings.sh @@ -38,6 +38,16 @@ case $set_branch in ;; esac +read -p 'Enable git credential helper to cache? [y/N]: ' set_cache +case $set_cache in + [Yy]* ) + git config --global credential.helper cache + ;; + * ) + echo 'Skipping' + ;; +esac + # ---------------------------------------------------------- echo "----- User Groups (requires sudo) -------------------" diff --git a/one-time-stuff/conf/sshd_config.conf b/one-time-stuff/conf/sshd_config.conf index b68090a..ab7541f 100644 --- a/one-time-stuff/conf/sshd_config.conf +++ b/one-time-stuff/conf/sshd_config.conf @@ -3,7 +3,6 @@ AuthenticationMethods publickey LogLevel VERBOSE PermitRootLogin no -UsePrivilegeSeparation sandbox PasswordAuthentication no ChallengeResponseAuthentication no