Skip to main content

master_command

Function master_command 

Source
pub fn master_command(host: &Host) -> String
Expand description

The ssh -MNf line that opens a master for this host.

One renderer, used by every verb and by host list, so the advice cannot drift between them. Preparing the socket directory is part of producing the command: printing one that cannot work is worse than printing nothing, and the failure arrives only after a 2FA prompt.