Auto accept new key for ssh dev aliases

This commit is contained in:
Jeremy Gardais 2021-12-08 20:29:50 +01:00
parent 1c629d6f23
commit 2d1e4172ec
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 2 deletions

4
zshrc
View File

@ -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-)' $(fc -lr 4900 | \grep --max-count=1 --extended-regexp "[0-9]{1,4} ssh " | cut --delimiter=" " --fields=4-)'
# For development and tests # For development and tests
alias sshdev='ssh -o UserKnownHostsFile=/dev/null' alias sshdev='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=accept-new'
alias scpdev='scp -o UserKnownHostsFile=/dev/null' alias scpdev='scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=accept-new'
# }}} # }}}