From dcae437a370d963e90b5750930f1d0c289c438fe Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Fri, 7 Oct 2022 08:17:16 -0500 Subject: [PATCH] .bashrc: Remove push_ssh_cert function Remove `push_ssh_cert` helper function, because this is an inferior version of the standard `ssh-copy-id` utility. --- .bash_completion.d/misc.bash | 1 - .bashrc | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/.bash_completion.d/misc.bash b/.bash_completion.d/misc.bash index 6a271e4..a827430 100644 --- a/.bash_completion.d/misc.bash +++ b/.bash_completion.d/misc.bash @@ -2,6 +2,5 @@ # http://www.gnu.org/software/bash/manual/bashref.html#Programmable-Completion-Builtins complete -F _known_hosts whois nslookup nmap -complete -F _known_hosts push_ssh_cert complete -o nospace -A command killall diff --git a/.bashrc b/.bashrc index e7430cc..22a4bc3 100644 --- a/.bashrc +++ b/.bashrc @@ -365,17 +365,6 @@ settitle_window() { printf "\033]0;%s\007" "$@" } -# push SSH public key to another box -push_ssh_cert() { - local _host - test -f ~/.ssh/id_rsa.pub || ssh-keygen -t rsa -b 4096 - for _host in "$@"; - do - echo $_host - ssh $_host 'cat >> ~/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub - done -} - # --------------------------------------------------------------------------- # PATH MANIPULATION FUNCTIONS # --------------------------------------------------------------------------- -- 2.45.2