no user and no global known hosts file
authorJoerg Jaspert <joerg.jaspert@dlh.de>
Thu, 3 Mar 2016 08:51:30 +0000 (09:51 +0100)
committerJoerg Jaspert <joerg.jaspert@dlh.de>
Thu, 3 Mar 2016 08:51:30 +0000 (09:51 +0100)
.zsh/functions/sshnk

index 09f8ac1..3b18236 100644 (file)
@@ -5,6 +5,6 @@
     local SSH_AGENT_PID
     eval `ssh-agent`
     ssh-add -c
-    ssh -o ControlPath=none -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"
+    ssh -o ControlPath=none -A -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"
     kill $SSH_AGENT_PID
 )