diff options
author | Andrew Cady <d@cryptonomic.net> | 2021-10-23 18:35:31 -0400 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2021-10-23 18:35:31 -0400 |
commit | e2d92847bbece5889f6690f68bf4bc614723700c (patch) | |
tree | f52da2fa0945abaf43364488008a8c5c040b0114 /EndoForge/openssh/runsshd.sh | |
parent | f94c5c4222cf5edf42193dc4dd3010ba1f8b53f2 (diff) |
sshd improvements
Diffstat (limited to 'EndoForge/openssh/runsshd.sh')
-rwxr-xr-x | EndoForge/openssh/runsshd.sh | 16 |
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 | ||
2 | set -- | ||
3 | dirs=$HOME | ||
4 | p=$HOME | ||
5 | while [ "$p" != "${p%/*}" ] | ||
6 | do | ||
7 | p=${p%/*} | ||
8 | dirs="$dirs $p/" | ||
9 | done | ||
10 | |||
11 | chown root:root $dirs | ||
12 | chmod go-w $dirs | ||
13 | |||
14 | cmd="/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 | |||