**Function:** Copies files or folders to the specified server using scp.
**Author**: [Douglas Stebila](http://www.douglas.stebila.ca/)
**Requires**: scp must be able to automatically authenticate with the client, for example, using ssh public key authentication.
**Input**: (Files/Folders)
**Output**: (Files/Folders)
**Notes**: Warning: This action may overwrite files on the remote server.
What is SCP?
What’s the difference with ‘afp’?
Thanks
Comment by alibaba — July 21, 2005 @ 3:51 am
scp is a secure copy protocol that is part of the ssh suite of tools. It’s generally a command-line Unix tool, and instead of using cp to copy files locally, you can use scp to copy files to/from remote servers.
Comment by Douglas Stebila — July 25, 2005 @ 9:46 am
Any chance on updating it to allow the password to be added to the action? Using keygen, I could do this with the standard shell script action, but that doesn’t work with password prompts. I’d like to be able to distribute the action to some of our users & not have to set up a private/public pair in their shell.
Comment by Niels Meersschaert — August 18, 2005 @ 10:52 am
Is the return the finder items that were copied? If I add “send to trash” after scp the files are note getting deleted locally.
Comment by Tryan — May 28, 2007 @ 10:27 pm
Is it possible to change the port used for this script? I have several servers that run ssh on a different port than the standard 22.
Comment by Kevin Hansen — September 27, 2007 @ 3:47 pm
The port can be changed by putting the appropriate scp command line option in “Other options”. For example, Put -P 2222 to use port 2222.
Comment by Douglas Stebila — July 1, 2008 @ 6:25 pm