Update .local/bin/setup/setupssh
This commit is contained in:
@@ -5,7 +5,7 @@ echo "Setting up SSH"
|
||||
# Extract the login details from enpass
|
||||
LABS=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Scarif: Labs" 2>&1)
|
||||
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
|
||||
TITLE="$USER@$(cat /etc/hostname)" # The title for the SSH key
|
||||
|
||||
Reference in New Issue
Block a user