]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/ssh_secure/ssh_secure.zshrc
Add "ssh_secure" plugin
[ax-zsh.git] / plugins / ssh_secure / ssh_secure.zshrc
diff --git a/plugins/ssh_secure/ssh_secure.zshrc b/plugins/ssh_secure/ssh_secure.zshrc
new file mode 100644 (file)
index 0000000..dbc0eea
--- /dev/null
@@ -0,0 +1,10 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# ssh_secure.zshrc: Make SSH operations more secure
+
+# Make sure that "ssh(1)" is installed
+(( $+commands[ssh] )) || return
+
+# Enforce "strict host key checking"
+alias ssh="\ssh -o 'StrictHostKeyChecking yes'"
+alias sshnew="\ssh -o 'StrictHostKeyChecking no'"
+alias sshtmp="\ssh -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile /dev/null'"