To copy files or directories between systems, you must have permission to log in and copy files.
The scp command, as a component of the ssh command, requires that you have either a user account or host key access to the target system. For more information, see About Secure Shell in Managing Secure Shell Access in Oracle Solaris 11.4.
Caution - Both the cp and scp commands can overwrite files without warning. Ensure that file names are correct before executing the command.