dev_scripts::sync::pkgsrc

Function warmup_ssh_session

source
pub fn warmup_ssh_session() -> Result<()>
Expand description

Create a new ssh connection that doesn’t get bound to a given session. This allows that session to be reused, effectively eliminating the need to authenticate every time a git repository is cloned/pulled.

This is especially necessary for users that have their SSH key on a physical device, such as a NitroKey, as authentications with such devices are sequential and take quite some time.