commit before push.
This commit is contained in:
commit
0439f15994
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
sed -i 's,^\(PasswordAuthentication \).*,\1'yes',' /etc/ssh/sshd_config
|
||||
/etc/init.d/ssh restart
|
||||
sudo sed -i 's,^\(PasswordAuthentication \).*,\1'yes',' /etc/ssh/sshd_config
|
||||
sudo etc/init.d/ssh restart
|
||||
|
||||
bash -c "cat > ~/.ssh/config" <<'EOF'
|
||||
Host *
|
||||
|
|
|
|||
|
|
@ -85,12 +85,12 @@ EOF
|
|||
DEST=${1:-/etc/skel}
|
||||
cat > ${DEST}/.zprofile <<'EOF'
|
||||
|
||||
if [ -f ${HOME}/.ssh/id_rsa.pub ]; then
|
||||
chmod 644 ${HOME}/.ssh/id_rsa.pub
|
||||
if [ -f ${DEST}/.ssh/id_rsa.pub ]; then
|
||||
chmod 644 ${DEST}/.ssh/id_rsa.pub
|
||||
else
|
||||
echo "Generating ssh keys."
|
||||
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
|
||||
EOF
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ chmod +x ${DEST}/.zprofile
|
|||
ssh-keygen -A
|
||||
|
||||
# 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.
|
||||
# ssh-keyscan git.ring-zero.co.uk >> ${HOME}/.ssh/known_hosts
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ apt install -y \
|
|||
apt-transport-https \
|
||||
ca-certificates \
|
||||
curl \
|
||||
pass \
|
||||
gnupg2 \
|
||||
software-properties-common
|
||||
apt install -y docker-ce docker-ce-cli containerd.io docker-compose
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue