• Avery Pennarun's avatar
    ssh.py: support finding sshuttle in "$HOME/.../sshuttle" · 4a462258
    Avery Pennarun authored
    If you ran sshuttle from /home/apenwarr/sshuttle/sshuttle, we would
    automatically add /home/apenwarr/sshuttle to the PATH before trying to
    execute sshuttle on the remote machine.  That way, if you install it in the
    same place on two computers, the client would still be able to start the
    server.
    
    Someone reported, though, that if they installed the client in
    /home/apenwarr/sshuttle/shuttle, and the server in /root/sshuttle/sshuttle,
    then used "-r root@servername", it wasn't able to find the program.
    
    Similar problems would happen if you're apenwarr at home and averyp at work.
    
    So what we now do is add *two* directories to the PATH:
    /home/apenwarr/sshuttle and $HOME/sshuttle, where $HOME is the value of
    $HOME on the *server*, not the client.  So it'll find it in either place.
    4a462258
Name
Last commit
Last update
.gitignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
client.py Loading commit data...
helpers.py Loading commit data...
iptables.py Loading commit data...
main.py Loading commit data...
options.py Loading commit data...
server.py Loading commit data...
ssh.py Loading commit data...
sshuttle Loading commit data...
ssnet.py Loading commit data...