Add utils for managing my SSH keys

This commit is contained in:
Mylloon 2023-10-08 19:05:09 +02:00
parent f11d6e4957
commit 516beff5dc
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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"