add ssh alias and config

This commit is contained in:
Jean-Marie Mineau 2020-09-14 22:50:23 +02:00
parent 4c4efbdacb
commit a8bc569db4
2 changed files with 21 additions and 1 deletions

View file

@ -47,6 +47,8 @@ ex ()
### ALIASES ### ALIASES
# Some are inspired from https://gitlab.com/dwt1/dotfiles/-/blob/master/.bashrc # Some are inspired from https://gitlab.com/dwt1/dotfiles/-/blob/master/.bashrc
alias sudo='sudo '
# navigation # navigation
alias ..='cd ..' alias ..='cd ..'
alias ...='cd ../.' alias ...='cd ../.'
@ -63,7 +65,7 @@ alias upgrade='pacman -Suy && yay -Suy'
# git # git
alias add='git add' alias add='git add'
alias branch='git branch' alias branch='git branch'
alias commit='git commit' alias commit='git commit -am'
alias clone='git clone' alias clone='git clone'
alias pull='git pull' alias pull='git pull'
alias push='git push' alias push='git push'
@ -71,4 +73,8 @@ alias merge='git merge'
alias status='git status' alias status='git status'
alias rebase='git rebase' alias rebase='git rebase'
# ssh
alias hindley='ssh hindley.adh.auro.re'
alias proxy_hindley='ssh -D 8080 hindley.adh.auro.re'
alias config='/usr/bin/git --git-dir=/home/me/.cfg/ --work-tree=/home/me' alias config='/usr/bin/git --git-dir=/home/me/.cfg/ --work-tree=/home/me'

14
.ssh/config Normal file
View file

@ -0,0 +1,14 @@
AddKeysToAgent confirm
Host hindley.adh.auro.re
User jmmineau
Host azerty.fil.sand.auro.re
User jmmineau
Host 10.128.0.* *.adm.auro.re
ProxyJump passerelle.auro.re
User histausse
Host *.auro.re
User histausse