Skip to content

SSH forwarding to an UNIX socket does not work #1220

@gvalkov

Description

@gvalkov

Hello,

We recently deployed warpgate at work. It's all together great, but we're running in to the following issue:

Given a service listening on an UNIX socket. For example:

user@target $ socat UNIX-LISTEN:/tmp/test.sock,reuseaddr,fork STDOUT

A direct SSH connection with a local forwarding rule to the target host works:

ssh -L 127.0.0.1:5901:/tmp/test.sock 'user@target'
echo "ok" | socat STDIN TCP4-CONNECT:127.0.0.1:5901   
# "ok" printed on target

However, when connecting through warpgate:

ssh -L 127.0.0.1:5901:/tmp/test.sock 'warpuser:target@warpserver' -p 2222
echo "ok" | socat STDIN TCP4-CONNECT:127.0.0.1:5901   
# channel 2: open failed: unknown channel type: Unknown channel type

Forwarding between INET sockets (e.g. -L 9999:localhost:9999) works as expected. It would be convenient if it also worked for UNIX sockets.

Thanks,
Georgi

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions