mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
chore: replace authme shell function with alias to ssh-copy-id
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user