Update .local/bin/setup/setupssh

This commit is contained in:
2026-02-22 23:27:49 +00:00
parent eed8bb7521
commit 6eb3aeb933

View File

@@ -5,7 +5,7 @@ echo "Setting up SSH"
# Extract the login details from enpass # Extract the login details from enpass
LABS=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Scarif: Labs" 2>&1) LABS=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Scarif: Labs" 2>&1)
LABSUN=$(echo "$LABS" | grep -Po "(?<=login: )\w+") LABSUN=$(echo "$LABS" | grep -Po "(?<=login: )\w+")
LABSPW=$(echo "$LABS" | grep -Po "(?<=password: ).+(?=\")") LABSPW=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort pass "Scarif: Labs")
SSHPATH="$HOME/.ssh/id_ed25519" # The path to the SSH key file SSHPATH="$HOME/.ssh/id_ed25519" # The path to the SSH key file
TITLE="$USER@$(cat /etc/hostname)" # The title for the SSH key TITLE="$USER@$(cat /etc/hostname)" # The title for the SSH key