41 lines
969 B
Plaintext
Executable File
41 lines
969 B
Plaintext
Executable File
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
|
|
|