mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-01 03:29:38 +01:00
ssh.py: use 'exec sshuttle' to get rid of the extra sh process.
This commit is contained in:
parent
bfd506dcdc
commit
ea12048418
2
ssh.py
2
ssh.py
@ -18,7 +18,7 @@ def connect(rhost):
|
||||
# stuff here.
|
||||
escapedir = re.sub(r'([^\w/])', r'\\\\\\\1', nicedir)
|
||||
cmd = r"""
|
||||
sh -c PATH=%s:'$PATH sshuttle --server'
|
||||
sh -c PATH=%s:'$PATH exec sshuttle --server'
|
||||
""" % (escapedir,)
|
||||
argv = ['ssh', '-v', rhost, '--', cmd.strip()]
|
||||
print repr(argv)
|
||||
|
Loading…
Reference in New Issue
Block a user