]> code.delx.au - dotfiles/commitdiff
bash: ssh_unsafe ignores hosts file
authorJames Bunton <jamesbunton@delx.net.au>
Sat, 4 Feb 2017 23:52:43 +0000 (10:52 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Sat, 4 Feb 2017 23:53:09 +0000 (10:53 +1100)
.bash/interactive

index 380a561d628e52410f0161ffb4499ede58133bdf..867c7a39423d6d7589a61cfc03a3bcd2c12026bd 100644 (file)
@@ -227,7 +227,7 @@ function ssh_new {
 
 # SSH without verifying host key
 function ssh_unsafe {
-    ssh -o StrictHostKeyChecking=no "$@"
+    ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "$@"
 }