pub struct Options {
pub command: Option<OsString>,
pub disallow_shell: bool,
pub kind: Option<ProgramKind>,
}Available on crate feature
blocking-client only.Expand description
The options for use when connecting via the ssh protocol.
Fields§
§command: Option<OsString>The program or script to use.
If unset, it defaults to ssh or ssh.exe, or the program implied by kind if that one is set.
disallow_shell: boolIf true, a shell must not be used to execute command.
This defaults to false, and a shell can then be used if command seems to require it, but won’t be
used unnecessarily.
kind: Option<ProgramKind>The ssh variant further identifying program. This determines which arguments will be used
when invoking the program.
If unset, the program basename determines the variant, or an invocation of the command itself.