first commit

This commit is contained in:
2023-01-25 13:23:03 +01:00
commit 531c336c98
2 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
Ordner anlegen
mkdir -p ~/.config/autostart-scripts/ ok
mkdir -p ~/.config/plasma-workspace/shutdown/ ok
mkdir -p ~/.config/plasma-workspace/env/ ok
Skript erstelle : ~/.config/autostart-scripts/ssh-add.sh
#! /bin/zsh
sleep 10
SSH_ASKPASS=/usr/bin/ksshaskpass
export SSH_ASKPASS
ssh-add ~/.ssh/id_ed25519
Skript erstellen ~/.config/plasma-workspace/shutdown/ssh-agent-shutdown.sh
#!/bin/sh
[ -z "$SSH_AGENT_PID" ] || eval "$(ssh-agent -k)"
Skript erstelle ~/.config/plasma-workspace/env/ssh-agent-startup.sh
#!/bin/sh
[ -n "$SSH_AGENT_PID" ] || eval "$(ssh-agent -s)"
SSH_ASKPASS=/usr/bin/ksshaskpass
export SSH_ASKPASS
Rechte zum ausführen
chmod +x ~/.config/autostart-scripts/ssh-add.sh
chmod +x ~/.config/plasma-workspace/shutdown/ssh-agent-shutdown.sh
chmod +x ~/.config/plasma-workspace/env/ssh-agent-startup.sh
sudo vi /etc/profile.d/ksshaskpass.sh
#!/bin/bash
export SSH_ASKPASS=/usr/bin/ksshaskpass
sudo chmod +x /etc/profile.d/ksshaskpass.sh