Add utils for managing my SSH keys
This commit is contained in:
parent
f11d6e4957
commit
516beff5dc
1 changed files with 7 additions and 0 deletions
|
@ -6,3 +6,10 @@ alias mirrors_update "curl -s 'https://archlinux.org/mirrorlist/?country=FR&coun
|
||||||
alias pacman-clean "sudo pacman -Rsn \$(pacman -Qqtd) --noconfirm"
|
alias pacman-clean "sudo pacman -Rsn \$(pacman -Qqtd) --noconfirm"
|
||||||
alias untgz "tar xvzf"
|
alias untgz "tar xvzf"
|
||||||
alias paru-rebuild "checkrebuild | awk '{print \$2}' | xargs -r paru -S --rebuild=all --noconfirm"
|
alias paru-rebuild "checkrebuild | awk '{print \$2}' | xargs -r paru -S --rebuild=all --noconfirm"
|
||||||
|
alias ssh-export "tar czf '$HOME/SSH.tar.gz' $HOME/.ssh"
|
||||||
|
alias ssh-fix "sudo chown $USER:$(id -gn) $HOME/.ssh/* && \
|
||||||
|
sudo chmod u=r,g=,o= $HOME/.ssh/*; \
|
||||||
|
sudo chmod u=r,g=r,o=r $HOME/.ssh/*.pub; \
|
||||||
|
sudo chmod u=r,g=r,o=r $HOME/.ssh/config; \
|
||||||
|
sudo chmod u=rw,g=,o= $HOME/.ssh/environment 2>/dev/null; \
|
||||||
|
sudo chmod u=rw,g=,o= $HOME/.ssh/known_hosts 2>/dev/null"
|
||||||
|
|
Loading…
Reference in a new issue