#76 Forwarding unix sockets?

Opened by alakhpc on Jul 18, 2022, 12:04 PM
// alakhpc on Jul 18, 2022, 12:04 PM

HI!, Is it possible to forward unix sockets? I see channel_open_direct_tcpip the method but seems like I doesn’t work with sockets

for context this is how it works with the openssh crate

    let session = Session::connect_mux("ssh://user@server", KnownHosts::Strict)
        .await
        .unwrap();

    session
        .request_port_forward(
            ForwardType::Local,
            SocketAddr::from_str("0.0.0.0:2375").unwrap(),
            Path::new("/var/run/docker.sock"),
        )
        .await
        .unwrap();