]> arthur.barton.de Git - ax-zsh.git/commitdiff
Add "ssh_secure" plugin
authorAlexander Barton <alex@barton.de>
Sat, 18 Jul 2015 02:12:09 +0000 (04:12 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 18 Jul 2015 02:12:09 +0000 (04:12 +0200)
Defines some aliases to make OpenSSH handling more secure.

plugins/ssh_secure/ssh_secure.zshrc [new file with mode: 0644]

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'"