Skip to content

OSError exception with ssh option #666

@haha150

Description

@haha150

Hi,

i get an exception when trying to use the "-e" command for "-oKexAlgorithms", is this fixable?

sshuttle -e 'ssh -oKexAlgorithms=+diffie-hellman-group1-sha1' -vvr xxx@10.x.x.x:22000 10.x.x.x/24
Starting sshuttle proxy (version 1.0.5).
c : which() found 'sudo' at /usr/bin/sudo
fw: Starting firewall with Python version 3.9.2
fw: which() found 'iptables' at /usr/sbin/iptables
fw: which() found 'iptables' at /usr/sbin/iptables
fw: ready method name nat.
c : IPv6 disabled since it isn't supported by method nat.
c : Method: nat
c : IPv4: on
c : IPv6: off (not available with nat method)
c : UDP : off (not available with nat method)
c : DNS : off (available)
c : User: off (available)
c : Subnets to forward through remote host (type, IP, cidr mask width, startPort, endPort):
c : (<AddressFamily.AF_INET: 2>, '10.2.2.0', 24, 0, 0)
c : Subnets to exclude from forwarding:
c : (<AddressFamily.AF_INET: 2>, '127.0.0.1', 32, 0, 0)
c : Trying to bind redirector on port 12300
c : TCP redirector listening on ('127.0.0.1', 12300).
c : TCP redirector listening with <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 12300)>.
c : Starting client with Python version 3.9.2
c : Connecting to server...
c : which() found 'ssh' at /usr/bin/ssh
c : executing: ['/usr/bin/ssh', '-oKexAlgorithms=+diffie-hellman-group1-sha1', '-p', '22000', 'xxx@10.x.x.x', '--', '/bin/sh -c 'P=python3; $P -V 2>/dev/null || P=python; exec "$P" -c '"'"'import sys, os; verbosity=2; sys.stdin = os.fdopen(0, "rb"); exec(compile(sys.stdin.read(1486), "assembler.py", "exec"))'"'"''']
c : > channel=0 cmd=PING len=7 (fullness=0)
xxx@10.x.x.x's password:
s: assembling 'sshuttle' (88 bytes)
s: assembling 'sshuttle.cmdline_options' (65 bytes)
s: assembling 'sshuttle.helpers' (2646 bytes)
Traceback (most recent call last):
File "", line 1, in ?
File "assembler.py", line 27, in ?
File "sshuttle.helpers", line 97
except OSError as e:
^
SyntaxError: invalid syntax
c : fatal: c : server died with error code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions