Archived
1
0
Fork 0

Tweaks to the ssh agent

This commit is contained in:
J. Elfring (x) 2020-12-15 19:56:49 +01:00
parent a70448b505
commit bdf372d2cc
2 changed files with 10 additions and 3 deletions

View file

@ -97,5 +97,4 @@ fi
cd $HOME cd $HOME
test -z $noKeychain && /usr/bin/keychain --nogui $HOME/.ssh/id_rsa test -f $HOME/.keychain/$HOSTNAME-sh && source $HOME/.keychain/$HOSTNAME-sh
source $HOME/.keychain/$HOSTNAME-sh

View file

@ -387,6 +387,8 @@ mman(){
} }
## Dump SSL Cert from host ## Dump SSL Cert from host
## sslcheck example.com:25 -starttls smtp
## sslcheck example.com:443
sslcheck(){ sslcheck(){
echo -n | openssl s_client -connect $* | tee /dev/tty | openssl x509 -text -noout echo -n | openssl s_client -connect $* | tee /dev/tty | openssl x509 -text -noout
} }
@ -396,4 +398,10 @@ kubesel(){
kubeconfig=$(find ~/.kube/kubesel -type f | rev | cut -d "/" -f 1 | rev | sort | fzf) kubeconfig=$(find ~/.kube/kubesel -type f | rev | cut -d "/" -f 1 | rev | sort | fzf)
export KUBECONFIG=~/.kube/kubesel/$kubeconfig export KUBECONFIG=~/.kube/kubesel/$kubeconfig
} }
so
## SSH agent
## Add sth like test -z $noKeychain && agent to ~/.extra
function agent(){
/usr/bin/keychain --nolock --nogui $HOME/.ssh/id_rsa
source $HOME/.keychain/$HOSTNAME-sh
}