From 326cecec4e7eefb420de419413496403e2e54dde Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 23 Feb 2017 12:06:33 +0100 Subject: [PATCH] Add a alias to remove old host sshkey --- zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 90f395e..5b14b20 100644 --- a/zshrc +++ b/zshrc @@ -330,12 +330,17 @@ alias stat_sys="echo ' ' && uname -a && echo ' '&& uptime &&echo ' '&& df && ech #####FONCTIONS ###################################### +# SSH +function clearsshkey() { + sed -i "${1}d" ~/.ssh/known_hosts +} + + ## Verrouiller le shell avec vlock #function TRAPALRM() { vlock } ##Cree le repertoire et va dedans function mkcd() { - #mkdir $1 && cd $1 mkdir $1 && cd $_ }