From 2d1e4172eceede6a32e295d8c366f202b04b82e3 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 8 Dec 2021 20:29:50 +0100 Subject: [PATCH] Auto accept new key for ssh dev aliases --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index b6194c3..948ef03 100644 --- a/zshrc +++ b/zshrc @@ -375,8 +375,8 @@ alias recossh='load-ssh-agent && $(fc -lr 4900 | \grep --max-count=1 --extended-regexp "[0-9]{1,4} ssh " | cut --delimiter=" " --fields=4-)' # For development and tests -alias sshdev='ssh -o UserKnownHostsFile=/dev/null' -alias scpdev='scp -o UserKnownHostsFile=/dev/null' +alias sshdev='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=accept-new' +alias scpdev='scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=accept-new' # }}}