resolve_ssh_key

Function resolve_ssh_key 

Source
pub(crate) async fn resolve_ssh_key(raw: &str) -> Result<String>
Expand description

Resolve an --ssh-key CLI value into a SHA256 fingerprint.

Accepts three forms:

  • Empty string (--ssh-key with no value): list keys from agent, interactive select.
  • File path (--ssh-key ~/.ssh/id_ed25519.pub): read public key, compute fingerprint.
  • Fingerprint (--ssh-key SHA256:...): use directly.