From 2c2fc6ddf90a19d92c2bc3b9db28d4e391b2d788 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 23 Feb 2022 11:37:38 +0000 Subject: [PATCH] chore: replace authme shell function with alias to ssh-copy-id --- zsh/aliases.zsh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index aaa11e6..382bc85 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -61,18 +61,7 @@ myip() { } # appends your key to a server's authorized keys file -authme() { - ssh "$1" 'mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys' \ - < ~/.ssh/id_rsa.pub -} - -# ssh commands related to old SSH keys -alias ssho="ssh -i ~/.ssh/old-id_rsa" -authmeo() { - ssh -i ~/.ssh/old-id_rsa "$1" \ - 'mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys' \ - < ~/.ssh/id_rsa.pub -} +alias authme="ssh-copy-id" # Make and cd into directory # - from: http://alias.sh/make-and-cd-directory