|
|
@ -17,7 +17,25 @@ chmod 600 /root/.ssh/known_hosts |
|
|
|
cat <<EOF > /root/.ssh/config |
|
|
|
|
|
|
|
Host git.0k.io |
|
|
|
## We'll leverage persistent connection to speed things up |
|
|
|
ControlMaster auto |
|
|
|
ControlPath ~/.ssh/control/%r@%h:%p |
|
|
|
ControlPersist 1m |
|
|
|
ServerAliveInterval 20 |
|
|
|
HostKeyAlgorithms +ssh-dss |
|
|
|
User vm-user |
|
|
|
Port 10022 |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
mkdir -p /root/.ssh/control |
|
|
|
|
|
|
|
cat <<EOF > /opt/odoo/common/build.d/050-open-ssh |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
echo "Checking and opening connection to git.0k.io:" >&2 |
|
|
|
ssh -v git.0k.io -- true |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
chmod +x /opt/odoo/common/build.d/050-open-ssh |