Class: Xshellz::Keys::KeyPair

Inherits:
Struct
  • Object
show all
Defined in:
lib/xshellz/keys.rb

Overview

An in-memory ed25519 keypair.

private_key_openssh is the private key in OpenSSH format (-----BEGIN OPENSSH PRIVATE KEY-----). Persist it if you plan to detach and Sandbox.connect again later from another process. public_key_line is the single-line OpenSSH public key (+ssh-ed25519 +) sent to the control plane.

Instance Attribute Summary collapse

Instance Attribute Details

#private_key_opensshObject

Returns the value of attribute private_key_openssh

Returns:

  • (Object)

    the current value of private_key_openssh



21
22
23
# File 'lib/xshellz/keys.rb', line 21

def private_key_openssh
  @private_key_openssh
end

#public_key_lineObject

Returns the value of attribute public_key_line

Returns:

  • (Object)

    the current value of public_key_line



21
22
23
# File 'lib/xshellz/keys.rb', line 21

def public_key_line
  @public_key_line
end