From faa238dcf2bd560e7c1f486d00e35cf1ef8cb2a9 Mon Sep 17 00:00:00 2001 From: Mario Alegre Date: Sat, 19 Dec 2020 23:35:50 -0500 Subject: [PATCH] minor changes --- bin/ssh-persist.sh | 3 ++- docs/linux/wireguard/add-peer.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/ssh-persist.sh b/bin/ssh-persist.sh index 92856a5..c18685e 100644 --- a/bin/ssh-persist.sh +++ b/bin/ssh-persist.sh @@ -35,7 +35,8 @@ ssh -S $tempdir/ssh medusa 0<&$_sshp_in 1>$_sshp_out 2>$_sshp_out & sshp true &> /dev/null # ask for password and run sudo so password can be cached (printf "[sudo] password for $(remote echo \$USER)@$(remote hostname): " - read -s password; printf '\n' + read -s password + printf '\n' echo "sudo -S true" >&3 echo $password >&3) # clear output diff --git a/docs/linux/wireguard/add-peer.md b/docs/linux/wireguard/add-peer.md index 68be5e9..08e4a8c 100644 --- a/docs/linux/wireguard/add-peer.md +++ b/docs/linux/wireguard/add-peer.md @@ -17,4 +17,4 @@ On two, run the same commands but with one and two switched. ## automatic -If you can ssh into an account that has sudo access on the host, simply run the `wg-addpeer` command included in this repo. +If you can ssh into an account that has sudo access on the host, simply run the `wg-addpeer` command included in the `bin` section of this repo.