Module Ketrew.Process_holder.Ssh_connection

module Ssh_connection: sig .. end
A module encapsulating daemonized SSH connections, the functions Ketrew.Process_holder.Ssh_connection.setsid_ssh is exposed to the Ketrew.Command_line module for the "ketrew internal-ssh" command.

The other items exported are used only for tests.


val setsid_ssh : session_id_file:Unix_io.IO.path ->
control_path:string ->
log_to:string ->
pipe_in:string ->
pipe_out:string ->
command:string ->
temp_dir:string ->
string ->
(unit,
[> `IO of
[> `Exn of exn
| `File_exists of string
| `Write_file_exn of string * exn
| `Wrong_path of string ] ])
Unix_io.Deferred_result.t
Daemonize an SSH connection with a control-path as a control-master, one can communicate with the client (as an SSH "ASKPASS" program) with the pipe_in and pipe_out named fifo files.