module Ssh: sig
.. end
type
t = {
|
address : string ; |
|
port : int option ; |
|
user : string option ; |
|
add_ssh_options : string list ; |
}
val to_yojson : t -> Yojson.Safe.json
val of_yojson : Yojson.Safe.json ->
t Ppx_deriving_yojson_runtime.error_or
The type of SSH-based hosts.
val configure_ssh_batch_option : [ `Custom of string | `Dropbear | `Openssh ] -> unit
Configure global “Batch option”,
(call
ssh
without password/question):
- for OpenSSH, it is
"-oBatchMode=yes"
,
- for DropBear, it is
"-s"
.
val ssh_batch_option : t -> string
Get the right option for the SSH client, for now this does not
actually depend on the Host.