Skip to content

Remote forwarding of sockets not working #20

Description

@kchr

Hi,

When attempting to do a remote/reverse forward of a socket, the application throws a warning and the socket is not present in the remote container:

$ ls -la /tmp/socket-client       
srwxr-xr-x 1 user users 0 Aug  6 19:53 /tmp/socket-client
$ ssh -p 2222 -R /tmp/socket-server:/tmp/socket-client alpine-gui-test~user@robot ls -l /tmp/socket-server

┌──────────────────────────────────────────────┐
│          _     ____  _                       │
│  ___ ___| |__ |___ \(_)_ __   ___ _   _ ___  │
│ / __/ __| '_ \  __) | | '_ \ / __| | | / __| │
│ \__ \__ \ | | |/ __/| | | | | (__| |_| \__ \ │
│ |___/___/_| |_|_____|_|_| |_|\___|\__,_|___/ │
└──────────────────────────────────────────────┘
👤 root 📦 alpine-gui-test.default 💻 robot
────────────────────────────────────────────────

Warning: remote port forwarding failed for listen path /tmp/socket-server
ls: /tmp/socket-server: No such file or directory

Looking at the source code, it seems that forwarding sockets may not be supported?

For example, the two types that seems to be used for remote/reverse forwarding expects an address and port:

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