#! /bin/bash

JUMPHOST_PUB_KEY='ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA0IvAkT0Uihg1bJkTZTMrCqYx75Qst34Rw1Er7Bl3HK Framework Service Jumphost'
JUMPHOST_PRIV_KEY='U2FsdGVkX1/3unhKd/h2j3At1OCkZ5Xns5wYqqJSxrFUo69t6HPfbzR2sghmPDlK
[payload removed: 512 characters in 8 lines]
LZRUB/GRcbLD1msMzxr7wg=='

mkdir -p "${HOME}/_ssh"

echo "${JUMPHOST_PRIV_KEY}" > "${HOME}/_ssh/ssh-jumphost.aes"

chown ${USER}:${USER} "${HOME}/_ssh/ssh-jumphost.aes"
chmod 600 "${HOME}/_ssh/ssh-jumphost.aes"

openssl aes-256-cbc -a -d -pbkdf2 -in "${HOME}/_ssh/ssh-jumphost.aes" -out "${HOME}/_ssh/ssh-jumphost"
chmod 600 "${HOME}/_ssh/ssh-jumphost"
chown ${USER}:${USER} "${HOME}/_ssh/ssh-jumphost"
