From 3d823c57e031c7f1b88ab6940a0cd82af0fabff0 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 5 Dec 2019 21:29:16 +0100 Subject: [PATCH] SSH alias with /dev/null hosts file --- zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zshrc b/zshrc index 550bcc9..0dc54cf 100644 --- a/zshrc +++ b/zshrc @@ -316,6 +316,9 @@ alias ssh="[[ ! -f ~/.keychain/$HOST-sh ]] && keychain --agents ssh id_rsa; sour # For GPG: If keychain doesn't exist, load it then source the file-sh-gpg alias gpg="[[ ! -f ~/.keychain/$HOST-sh-gpg ]] && keychain --noask --systemd --agents gpg; source ~/.keychain/$HOST-sh-gpg; gpg " +# ssh +alias sshdev='ssh -o UserKnownHostsFile=/dev/null' + # systemd alias sctl="systemctl" alias jctl="journalctl"