- 'echo -e "YUM_REPO_DIR: ${YUM_REPO_DIR}"'
- 'mkdir -pv "${HOME}/.ssh"'
- 'chmod -v 0700 "${HOME}/.ssh"'
- - '/bin/echo "${SSH_PRIV_KEY_YUM_REPO}" > "${HOME}/.ssh/authorized_keys"'
- - 'chmod -v 0600 "${HOME}/.ssh/authorized_keys"'
+ - '/bin/echo "${SSH_PRIV_KEY_YUM_REPO}" > "${HOME}/.ssh/id_rsa"'
+ - 'chmod -v 0600 "${HOME}/.ssh/id_rsa"'
- 'ls -lA --color=always "${HOME}/.ssh"'
-# - |
-# 'echo "Ensuring ${HOME}/.ssh/authorized_keys ..."'
-# 'mkdir -pv "${HOME}/.ssh"'
-# 'chmod -v 0700 "${HOME}/.ssh"'
-# 'echo "${SSH_PRIV_KEY_YUM_REPO}" > "${HOME}/.ssh/authorized_keys"'
-# 'chmod -v 0600 "${HOME}/.ssh/authorized_keys"'
-# 'ls -lA "${HOME}/.ssh"'
+ - |
+ if [[ -f "${HOME}/.ssh/config" ]] ; then
+ echo "Content of ${HOME}/.ssh/config:"
+ cat "${HOME}/.ssh/config"
+ fi
after_script:
- rm -rf rpmdir
environment: