From b812078771880417cba8b93a41d8aa7d520a3cb7 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 17 Aug 2020 10:28:27 +0800 Subject: [PATCH] [feature] add issh for insecure ssh --- config/fish/config.fish | 1 + win/profile.ps1 | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/fish/config.fish b/config/fish/config.fish index 504511d..e0df45a 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -115,6 +115,7 @@ alias kgd="k get deployment" alias ked="k edit deployment" alias kgp="k get pod -o 'custom-columns=NAME:.metadata.name,IMG:.spec.containers[*].image,STATUS:.status.phase'" alias kl="k logs -f --all-containers" +alias issh='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"' source-file-if-exists ~/.profile.fish diff --git a/win/profile.ps1 b/win/profile.ps1 index 2f3632a..0d2b02a 100644 --- a/win/profile.ps1 +++ b/win/profile.ps1 @@ -17,8 +17,9 @@ function kcc { k config get-contexts $args } function kcu { k config use-context $args} function kgd { k get deployment $args} function ked { k edit deployment $args} -function kgp { k k get pod -o 'custom-columns=NAME:.metadata.name,IMG:.spec.containers[*].image,STATUS:.status.phase' $args} +function kgp { k get pod -o 'custom-columns=NAME:.metadata.name,IMG:.spec.containers[*].image,STATUS:.status.phase' $args} function kl { k logs -f --all-containers $args} +function issh { ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" $args } function dp {