SlHelpers
Loading...
Searching...
No Matches
SlSSH::Keys Class Reference

Get SSH private and public keys. More...

#include <SSH.h>

Public Types

using Key = std::filesystem::path
 One SSH key (a path to it).
using KeyPair = std::pair<Key, Key>
 A pair of public + private keys (in that order).
using KeyPairs = std::vector<KeyPair>
 A list of key pairs.

Static Public Member Functions

static KeyPairs get (const std::string &host) noexcept
 Get keys for a host.

Friends

void testKeys ()

Detailed Description

Get SSH private and public keys.

Member Function Documentation

◆ get()

KeyPairs SlSSH::Keys::get ( const std::string & host)
staticnoexcept

Get keys for a host.

Parameters
hostHost to get keys for (currently ignored)
Returns
Private + public keys for host.

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9-build/slhelpers-20260428.f233ce9/include/helpers/SSH.h