Pure-Rust asynchronous SSH library, both client and server

#76 Forwarding unix sockets?

Opened by alakhpc on July 18, 2022
alakhpc on July 18, 2022

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();