summaryrefslogtreecommitdiff
path: root/setup_session_debian
diff options
context:
space:
mode:
Diffstat (limited to 'setup_session_debian')
-rwxr-xr-xsetup_session_debian13
1 files changed, 0 insertions, 13 deletions
diff --git a/setup_session_debian b/setup_session_debian
index f96553c..0988b5c 100755
--- a/setup_session_debian
+++ b/setup_session_debian
@@ -22,19 +22,6 @@ chmod 0600 ~/.ssh/authorized_keys
echo "Public Key Installed: $1"
lava-test-case public-key-installed --result pass
-# Account for running under sudo
-if [ ! -z "${SUDO_USER}" ]; then
- echo "Fixing up ${HOME}/.ssh permissions to ${SUDO_USER}:${SUDO_GID}"
- chown -R ${SUDO_USER}:${SUDO_GID} ${HOME}/.ssh
-fi
-
-grep -P "^LogLevel" /etc/ssh/sshd_config
-if [ $? -eq 0 ]; then
- sed -i "s/^LogLevel\ [A-Z]\+/LogLevel\ DEBUG/g" /etc/ssh/sshd_config
-else
- echo "LogLevel DEBUG" >> /etc/ssh/sshd_config
-fi
-
/etc/init.d/ssh restart
echo "sshd re-started"
if [ $? -eq 0 ]; then