mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-08-08 23:44:34 +02:00
Add a new --ssh-cmd= option to let you override the ssh command.
Requested by Axel Beckert.
This commit is contained in:
4
main.py
4
main.py
@ -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),
|
||||
|
Reference in New Issue
Block a user