Browse Source

minor changes

master
Mario Alegre 5 years ago
parent
commit
faa238dcf2
  1. 3
      bin/ssh-persist.sh
  2. 2
      docs/linux/wireguard/add-peer.md

3
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 sshp true &> /dev/null
# ask for password and run sudo so password can be cached # ask for password and run sudo so password can be cached
(printf "[sudo] password for $(remote echo \$USER)@$(remote hostname): " (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 "sudo -S true" >&3
echo $password >&3) echo $password >&3)
# clear output # clear output

2
docs/linux/wireguard/add-peer.md

@ -17,4 +17,4 @@ On two, run the same commands but with one and two switched.
## automatic ## 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.

Loading…
Cancel
Save