How to launch sshuttle without superuser pwd prompt
Take a look on ps
output when you prompted with sudo password. Here the output of this command when sshuttle
was executed
ps auxwww |grep sud
root 3504 0.1 0.0 231384 7516 pts/1 S+ 18:36 0:00 sudo -p [local sudo] Password: /usr/bin/python /usr/share/sshuttle/main.py /usr/bin/python -v --firewall 12300 0
So you need to put above command to /etc/sudoers
to grant you sudo power without password when you launch sshuttle
.
# edit sudoers safely
sudo visudo
And put these lines
Cmnd_Alias SSHUTTLE = /usr/bin/python /usr/share/sshuttle/main.py /usr/bin/python -v --firewall 12300 0
username ALL=(root) NOPASSWD: SSHUTTLE
According to official instructions:
sshuttle --sudoers --sudoers-user <your_username>