with multiline
This commit is contained in:
parent
a55ea6c372
commit
4f12159b8d
@ -13,13 +13,12 @@ if [ -n "$SSH_KEY" ]; then
|
|||||||
|
|
||||||
chmod 600 $SSH_KEY_ID
|
chmod 600 $SSH_KEY_ID
|
||||||
|
|
||||||
# Append the required to the ssh config file.
|
cat >$HOME/.ssh/config <<EOL
|
||||||
# Switch out the hostname for different hosts.
|
Host ci.i.kjuulh.io"\
|
||||||
# The line count is 5
|
IdentityFile ${SSH_KEY_ID}
|
||||||
echo "\nHost ci.i.kjuulh.io\n"\
|
IdentitiesOnly yes
|
||||||
" IdentityFile ${SSH_KEY_ID}\n"\
|
UserKnownHostsFile=/dev/null
|
||||||
" IdentitiesOnly yes\n"\
|
StrictHostKeyChecking no
|
||||||
" UserKnownHostsFile=/dev/null\n"\
|
EOL
|
||||||
" StrictHostKeyChecking no"\
|
|
||||||
>> $HOME/.ssh/config
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user