Changed delkey to a function

Before delkey was an alias and could only be invoked passing
an host as argument, now it accepts also user@host, will clean
up the argument and delkey
This commit is contained in:
Andrea Mistrali 2024-11-19 20:12:27 +01:00
parent a9abfcda86
commit 788055e8d3
Signed by: andre
SSH Key Fingerprint: SHA256:/D780pZnuHMQ8xFII5lAtXWy8zdowtBhgWjwi88p+lI
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ alias ptr='host -t ptr'
# alias psg="ps ax|grep "
alias myip="dig +short ANY @resolver1.opendns.com myip.opendns.com"
alias delkey="ssh-keygen -R "
# alias delkey="ssh-keygen -R "
alias k=kubectl
alias kk='kubectl konfig merge ~/.kube/configs/* > ~/.kube/config'

View File

@ -0,0 +1 @@
ssh-keygen -R $(echo $1|cut -d@ -f2)