Add a new --ssh-cmd= option to let you override the ssh command.

Requested by Axel Beckert.
This commit is contained in:
Avery Pennarun
2010-11-09 00:17:01 -08:00
parent 8b7605cc5d
commit 32b4defa9b
3 changed files with 16 additions and 7 deletions

View File

@ -56,6 +56,7 @@ python= specify the name/path of the python interpreter on the remote server [py
r,remote= ssh hostname (and optional username) of remote sshuttle server
x,exclude= exclude this subnet (can be used more than once)
v,verbose increase debug message verbosity
e,ssh-cmd= the command to use to connect to the remote [ssh]
seed-hosts= with -H, use these hostnames for initial scan (comma-separated)
server (internal use only)
firewall (internal use only)
@ -97,8 +98,9 @@ try:
else:
sh = None
sys.exit(client.main(parse_ipport(opt.listen or '0.0.0.0:0'),
opt.ssh_cmd,
remotename,
(opt.python or "python"),
opt.python,
sh,
opt.auto_nets,
parse_subnets(includes),