commit before push.

This commit is contained in:
cyteen 2022-03-04 13:59:08 +00:00
commit 0439f15994
4 changed files with 7 additions and 1738 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
sed -i 's,^\(PasswordAuthentication \).*,\1'yes',' /etc/ssh/sshd_config sudo sed -i 's,^\(PasswordAuthentication \).*,\1'yes',' /etc/ssh/sshd_config
/etc/init.d/ssh restart sudo etc/init.d/ssh restart
bash -c "cat > ~/.ssh/config" <<'EOF' bash -c "cat > ~/.ssh/config" <<'EOF'
Host * Host *

View File

@ -85,12 +85,12 @@ EOF
DEST=${1:-/etc/skel} DEST=${1:-/etc/skel}
cat > ${DEST}/.zprofile <<'EOF' cat > ${DEST}/.zprofile <<'EOF'
if [ -f ${HOME}/.ssh/id_rsa.pub ]; then if [ -f ${DEST}/.ssh/id_rsa.pub ]; then
chmod 644 ${HOME}/.ssh/id_rsa.pub chmod 644 ${DEST}/.ssh/id_rsa.pub
else else
echo "Generating ssh keys." echo "Generating ssh keys."
ssh-keygen -q -t rsa -N '' -f ${HOME}/.ssh/id_rsa 2>/dev/null <<< y >/dev/null ssh-keygen -q -t rsa -N '' -f ${HOME}/.ssh/id_rsa 2>/dev/null <<< y >/dev/null
chmod 644 ${HOME}/.ssh/id_rsa.pub chmod 644 ${DEST}/.ssh/id_rsa.pub
fi fi
EOF EOF
@ -100,7 +100,7 @@ chmod +x ${DEST}/.zprofile
ssh-keygen -A ssh-keygen -A
# Root user keys # Root user keys
ssh-keygen -q -t rsa -N '' -f ${HOME}/.ssh/id_rsa 2>/dev/null <<< y >/dev/null ssh-keygen -q -t rsa -N '' -f ${DEST}/.ssh/id_rsa 2>/dev/null <<< y >/dev/null
# Do this for any server you want to connect to without interaction. # Do this for any server you want to connect to without interaction.
# ssh-keyscan git.ring-zero.co.uk >> ${HOME}/.ssh/known_hosts # ssh-keyscan git.ring-zero.co.uk >> ${HOME}/.ssh/known_hosts

View File

@ -34,6 +34,7 @@ apt install -y \
apt-transport-https \ apt-transport-https \
ca-certificates \ ca-certificates \
curl \ curl \
pass \
gnupg2 \ gnupg2 \
software-properties-common software-properties-common
apt install -y docker-ce docker-ce-cli containerd.io docker-compose apt install -y docker-ce docker-ce-cli containerd.io docker-compose

File diff suppressed because it is too large Load Diff