show ssh key

This commit is contained in:
Maximilian Keßler 2023-10-17 16:00:20 +02:00
parent cb1b425550
commit c97551b0ee
Signed by: max
GPG Key ID: BCC5A619923C0BA5

View File

@ -6,6 +6,8 @@ SSH_KEY_FILE=/tmp/gitea-pages-ssh-key-$(date +%s)
echo "${INPUT_SSH_KEY}" >> "${SSH_KEY_FILE}"
chmod 600 "${SSH_KEY_FILE}"
cat "${SSH_KEY_FILE}"
# set up ssh remote key
echo "${INPUT_HOST} ${INPUT_HOST_KEY}" >> ~/.ssh/known_hosts