first commit
This commit is contained in:
40
add_start_ssh_agent_on_kde/Was soll passieren.txt
Executable file
40
add_start_ssh_agent_on_kde/Was soll passieren.txt
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user