From 4f12159b8dcccdc450743b114124637f85a1eda2 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 14 Aug 2022 21:51:26 +0200 Subject: [PATCH] with multiline --- scripts/setup_ssh.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/scripts/setup_ssh.sh b/scripts/setup_ssh.sh index 5d92c88..fc380cd 100755 --- a/scripts/setup_ssh.sh +++ b/scripts/setup_ssh.sh @@ -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 <