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.