mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 09:06:44 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user