Adding ssh agent

This commit is contained in:
2023-08-30 16:06:24 +02:00
parent f45acacab7
commit 0f35baad82
3 changed files with 27 additions and 0 deletions

View File

@ -30,6 +30,8 @@ xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorVirtual1/workspace3/la
echo "Installation des logiciels tierces"
sudo apt install keepassxc -y
# Configuration de keepass
DIR=$(dirname "$0")
cd $DIR
folder=$(find $HOME/.mozilla/firefox -type d -name "*.default-release")
@ -47,3 +49,7 @@ EOF
sudo bash -c 'echo "vm.swappiness=1" >> /etc/sysctl.conf'
ln -sf $(pwd)/systemd/ssh-agent.service $HOME/.config/systemd/user/ssh-agent.service
systemctl enable --user ssh-agent
# Configuration de l'écran de vérouillage

8
scripts/maintenance.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
sudo apt update -y
sudo apt upgrade -y
sudo apt autoclean -y
sudo apt clean -y
sudo apt autoremove -y
sudo apt purge ~c -y

13
systemd/ssh-agent.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
# DISPLAY required for ssh-askpass to work
Environment=DISPLAY=:0
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target