20 using Key = std::filesystem::path;
31 static KeyPairs get(
const std::string &host) noexcept;
33 friend void testKeys();
34 static void replace(std::string &path,
size_t &pos, std::string_view by) noexcept;
35 static Key handleTokens(std::string_view host, std::string path) noexcept;
Get SSH private and public keys.
Definition: SSH.h:15
std::filesystem::path Key
One SSH key (a path to it)
Definition: SSH.h:20
std::pair< Key, Key > KeyPair
A pair of public + private keys (in that order)
Definition: SSH.h:22
std::vector< KeyPair > KeyPairs
A list of key pairs.
Definition: SSH.h:24