run

Function run 

Source
pub async fn run(path: &str, command: &str) -> Result<ShellResult, SshctlError>
Expand description

Runs a given shell command on the remote hosts default shell though an existing SSH UNIX control socket. The SSH control socket is created outside of this crate by an existing SSH connection.