Skip to main content

executar_tunnel

Function executar_tunnel 

Source
pub async fn executar_tunnel(
    vps_nome: &str,
    porta_local: u16,
    host_remoto: &str,
    porta_remota: u16,
    config_override: Option<PathBuf>,
    password_override: Option<String>,
) -> Result<()>
Expand description

Executa o subcomando tunnel criando um port-forward SSH.

O tunnel escuta em localhost:porta_local e redireciona conexões para host_remoto:porta_remota através do servidor SSH da VPS.