fix(ssh): ssh key set to file var

!8
This commit is contained in:
2023-04-29 11:09:25 +09:30
parent 20392be05a
commit f75cf83e9a

View File

@ -145,7 +145,8 @@ Unit Tests:
chmod 700 "${!SSH_KEY_NAME}"
ssh-add "${!SSH_KEY_NAME}"
#update next line so that ca key can be obtained. original source is ansible repo
HOST_SSH_ID=$(cat roles/openssh-server/files/nww-nl/host_ca.pub)
#HOST_SSH_ID=$(cat roles/openssh-server/files/nww-nl/host_ca.pub)
HOST_SSH_ID=$(cat ssh_host_ca)
echo DEBUG HOST_SSH_ID[$HOST_SSH_ID]
echo "@cert-authority *.networkedweb.com $HOST_SSH_ID" > ~/.ssh/known_hosts
chmod 700 ~/.ssh/known_hosts