mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 11:46:40 +00:00
Add ssho and authmeo aliases for using old ssh key
This commit is contained in:
@@ -54,6 +54,14 @@ function authme {
|
||||
< ~/.ssh/id_rsa.pub
|
||||
}
|
||||
|
||||
# ssh commands related to old SSH keys
|
||||
alias ssho="ssh -i ~/.ssh/old-id_rsa"
|
||||
function authmeo {
|
||||
ssh -i ~/.ssh/old-id_rsa "$1" \
|
||||
'mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys' \
|
||||
< ~/.ssh/id_rsa.pub
|
||||
}
|
||||
|
||||
# Make and cd into directory
|
||||
# - from: http://alias.sh/make-and-cd-directory
|
||||
function mcd() {
|
||||
|
||||
Reference in New Issue
Block a user