Documentation
¶
Overview ¶
Package sshcopyid provides the ssh-copy-id utility — install a public key on a remote server's authorized_keys file.
It exposes a Config struct with a Parse method for command-line argument parsing, and a Run function that copies the key using an SSH connection resolved through pkg/sshclient.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPublicKey ¶
LoadPublicKey reads the public key to install. Tries (in order): the specified -i file, agent keys, default key files.
Types ¶
type Config ¶
type Config struct {
IdentityFile string // -i
Port string // -p
ConfigFile string // -F
Options []string // -o (repeatable)
DryRun bool // -n
ForceInstall bool // -f
Destination string // user@host positional argument
Version bool // -V
}
Config holds parsed ssh-copy-id command-line arguments.
Click to show internal directories.
Click to hide internal directories.