ssh fixes
This commit is contained in:
19
newSrv.sh
19
newSrv.sh
@ -104,23 +104,26 @@ export SUBODEV_SSH_DIR="/home/subodev/.ssh"
|
||||
|
||||
if [ ! -d $ROOT_SSH_DIR ]; then
|
||||
mkdir /root/.ssh/
|
||||
curl --silent https://dl.knownelement.com/FetchApplyDistPoint/ssh-authorized-keys > /root/.ssh/authorized_keys && chmod 400 /root/.ssh/authorized_keys
|
||||
chmod 400 /root/.ssh/authorized_keys
|
||||
curl --silent https://dl.knownelement.com/FetchApplyDistPoint/ssh-authorized-keys > /root/.ssh/authorized_keys \
|
||||
&& chmod 400 /root/.ssh/authorized_keys \
|
||||
&& chown root: /root/.ssh/authorized_keys
|
||||
fi
|
||||
|
||||
if [ ! -d $LOCALUSER_SSH_DIR ]; then
|
||||
if [ ! -d /home/subodev ]; then
|
||||
mkdir -p /home/localuser/.ssh/
|
||||
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/ssh-authorized-keys > /home/localuser/.ssh/authorized_keys && chmod 400 /home/localuser/.ssh/authorized_keys
|
||||
chmod 400 /home/localuser/.ssh/authorized_keys
|
||||
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/ssh-authorized-keys > /home/localuser/.ssh/authorized_keys \
|
||||
&& chmod 400 /home/localuser/.ssh/authorized_keys \
|
||||
&& chown localuser: /home/localuser/.ssh/authorized_keys
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -d $SUBODEV_SSH_DIR ]; then
|
||||
if [ ! -d /home/localuser ]; then
|
||||
if [ ! -d /home/subodev ]; then
|
||||
mkdir /home/subodev/.ssh/
|
||||
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/ssh-authorized-keys > /home/subodev/.ssh/authorized_keys && chmod 400 /home/subodev/.ssh/authorized_keys
|
||||
chmod 400 /home/subodev/.ssh/authorized_keys
|
||||
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/ssh-authorized-keys > /home/subodev/.ssh/authorized_keys \
|
||||
&& chmod 400 /home/subodev/.ssh/authorized_keys \
|
||||
&& chown subodev: /home/subodev/.ssh/authorized_keys
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -193,7 +196,7 @@ tcpdump \
|
||||
lynis \
|
||||
qemu-guest-agent \
|
||||
zsh \
|
||||
zsh-autocompletions \
|
||||
zsh-autosuggestions \
|
||||
zsh-syntax-highlighting \
|
||||
fonts-powerline \
|
||||
webmin \
|
||||
|
@ -1 +1,2 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDHaBNuLS+GYGRPc9wne63Ocr+R+/Q01Y9V0FTv0RnG3
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPyMR0lFgiMKhQJ5aqy68nR0BQp1cNzi/wIThyuTV4a8 tsyscto@ultix-control
|
Reference in New Issue
Block a user