summaryrefslogtreecommitdiff
path: root/EndoForge/openssh/runsshd.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-23 18:35:31 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-23 18:35:31 -0400
commite2d92847bbece5889f6690f68bf4bc614723700c (patch)
treef52da2fa0945abaf43364488008a8c5c040b0114 /EndoForge/openssh/runsshd.sh
parentf94c5c4222cf5edf42193dc4dd3010ba1f8b53f2 (diff)
sshd improvements
Diffstat (limited to 'EndoForge/openssh/runsshd.sh')
-rwxr-xr-xEndoForge/openssh/runsshd.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/EndoForge/openssh/runsshd.sh b/EndoForge/openssh/runsshd.sh
deleted file mode 100755
index 1eff668..0000000
--- a/EndoForge/openssh/runsshd.sh
+++ /dev/null
@@ -1,16 +0,0 @@
1#!/bin/sh
2set --
3dirs=$HOME
4p=$HOME
5while [ "$p" != "${p%/*}" ]
6do
7 p=${p%/*}
8 dirs="$dirs $p/"
9done
10
11chown root:root $dirs
12chmod go-w $dirs
13
14cmd="/usr/sbin/sshd -D -e -f $HOME/.ssh/sshd_config -h $HOME/.ssh/id_ed25519"
15/sbin/runuser -u u -- sh -c "set -x; $cmd"
16