Score:0

sshutlle failed: OSError: [Errno 88] Socket operation on non-socket

br flag

I have Ubuntu 21.04

  • Description: Ubuntu 21.04
  • Release: 21.04
  • Codename: hirsute

I have full workable Python environment:

$ python3 -m venv my_env
$ ls my_env
bin  include  lib  lib64  pyvenv.cfg  share
$ /home/proxyadmin/environments/my_env/bin/python3
Python 3.9.5 (default, May 11 2021, 08:20:37) 
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit
  1. I have pip and other packages:

    sudo apt install -y python3-pip
    sudo apt install -y build-essential libssl-dev libffi-dev python3-dev
    
  2. A couple of hours I try to add additional future to start Python correctly like:

    ln --symbolic /usr/bin/python3 /usr/bin/python 
    

sshutlle should be working, but no:

$ sudo sshuttle --python=/home/proxyadmin/environments/my_env/bin/python3  -r [email protected]/0 -vv 
Starting sshuttle proxy.
firewall manager: Starting firewall with Python version 2.7.18
firewall manager: ready method name nat.
IPv6 enabled: False
UDP enabled: False
DNS enabled: False
Binding redirector: 12300
TCP redirector listening on ('127.0.0.1', 12300).
TCP redirector listening with <socket._socketobject object at 0x7f3db6369280>.
Starting client with Python version 2.7.18
c : connecting to server...
c : executing: ['ssh', '[email protected]', '--', '\'/home/proxyadmin/environments/my_env/bin/python3\' -c \'import sys, os; verbosity=2; sys.stdin = os.fdopen(0, "rb"); exec(compile(sys.stdin.read(978), "assembler.py", "exec"))\'']
c :  > channel=0 cmd=PING len=7 (fullness=0)
[email protected]'s password: 
assembler.py:3: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
server: assembling 'sshuttle' (7 bytes)
server: assembling 'sshuttle.cmdline_options' (44 bytes)
server: assembling 'sshuttle.helpers' (950 bytes)
server: assembling 'sshuttle.ssnet' (5542 bytes)
server: assembling 'sshuttle.hostwatch' (2366 bytes)
server: assembling 'sshuttle.server' (3298 bytes)
Starting server with Python version 3.9.5
 s: latency control setting = True
 s: available routes:
 s:   2/192.168.4.0/24
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "assembler.py", line 37, in <module>
  File "sshuttle.server", line 250, in main
c : Connected.
c : Waiting: 2 r=[4, 8] w=[8] x=[] (fullness=7/0)
c :   Ready: 2 r=[] w=[8] x=[]
c : mux wrote: 15/15
c : Waiting: 2 r=[4, 8] w=[] x=[] (fullness=7/0)
  File "/usr/lib/python3.9/socket.py", line 545, in fromfd
    return socket(family, type, proto, nfd)
  File "/usr/lib/python3.9/socket.py", line 232, in __init__
    _socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 88] Socket operation on non-socket
c :   Ready: 2 r=[8] w=[] x=[]
c : fatal: server died with error code 1
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.