Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHostKey ¶
AddHostKey adds the SFTP host key to the known_hosts file. It uses ssh-keyscan to fetch the key.
func GenerateKey ¶
GenerateKey generates an Ed25519 key pair and saves it to the specified directory. Returns the private key in OpenSSH PEM format, public key in SSH format, and the full path to the private key file.
func InstallKey ¶
InstallKey connects to the SFTP server using a password and appends the public key to authorized_keys.
func VerifyConnection ¶
VerifyConnection attempts to connect using the provided private key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.