build_ssh_arguments

Function build_ssh_arguments 

fn build_ssh_arguments(
    username: &str,
    host: &str,
    port: Option<u16>,
    config: &ClientConfig,
) -> Vec<String>
Expand description

Build the SSH arguments from the username, host, port, and config.

§Arguments

  • username - The username to connect with.
  • host - The hostname to connect to.
  • port - Optional port number (0-65535).
  • config - The client config indicating how to call the SSH program.

§Returns

A vector of arguments ready to be passed to the SSH command.