execute ssh-copy-key
copies the ssh public key to a remote host
Synopsis
execute ssh-copy-key copies the ssh public key to a remote host.
The remote host IP, user, and a destination file name must all be specified (to the --remote.ip, --remote.user, and --remote.file flags, respectively).
execute ssh-copy-key [flags]
Options
--copy.service string The service that will be used to copy to the remote host [scp|ftp|sftp] (default "scp")
-h, --help help for ssh-copy-key
--remote.file string The intended destination /path/filename for the file on the remote host.
(For the FTP service, the file location is relative to the FTP root folder)
--remote.ip string The IP of the remote host where the public key file will be copied from
--remote.password string The password for the remote user that will be used to connect to the remote host
--remote.port int The port to be used by the remote read service. [default: 22]
--remote.user string The user that will be used to connect to the remote host
See also
- execute - for executing commands on the host