with multiline

This commit is contained in:
Kasper Juul Hermansen 2022-08-14 21:51:26 +02:00
parent a55ea6c372
commit 4f12159b8d
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -13,13 +13,12 @@ if [ -n "$SSH_KEY" ]; then
chmod 600 $SSH_KEY_ID
# Append the required to the ssh config file.
# Switch out the hostname for different hosts.
# The line count is 5
echo "\nHost ci.i.kjuulh.io\n"\
" IdentityFile ${SSH_KEY_ID}\n"\
" IdentitiesOnly yes\n"\
" UserKnownHostsFile=/dev/null\n"\
" StrictHostKeyChecking no"\
>> $HOME/.ssh/config
cat >$HOME/.ssh/config <<EOL
Host ci.i.kjuulh.io"\
IdentityFile ${SSH_KEY_ID}
IdentitiesOnly yes
UserKnownHostsFile=/dev/null
StrictHostKeyChecking no
EOL
fi