Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHManager ¶
type SSHManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(host string, ops ...Options) *SSHManager
New creates a new instance of SSHManager with optional configurations.
func (*SSHManager) AddSSHConfig ¶
func (cfg *SSHManager) AddSSHConfig() error
AddSSHConfig generates and appends or updates the SSH config.
func (*SSHManager) GenerateSSHKeyPair ¶
func (cfg *SSHManager) GenerateSSHKeyPair() (privateKeyPath, publicKeyPath string, err error)
GenerateSSHKeyPair generates an SSH key pair (private and public).
Click to show internal directories.
Click to hide internal directories.