chore: replace authme shell function with alias to ssh-copy-id

This commit is contained in:
2022-02-23 11:37:38 +00:00
parent 4672a17c5d
commit 2c2fc6ddf9

View File

@@ -61,18 +61,7 @@ myip() {
} }
# appends your key to a server's authorized keys file # appends your key to a server's authorized keys file
authme() { alias authme="ssh-copy-id"
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
}
# Make and cd into directory # Make and cd into directory
# - from: http://alias.sh/make-and-cd-directory # - from: http://alias.sh/make-and-cd-directory