ssh is a very powerful and widely used protocol in all the Unices. If you've used the ssh client in your Unix/Linux box, you must have realised how indispensable it is. There is another indispensable tool that uses the ssh protocol - scp (secure copy). scp was meant to be an alternative to unsecure tools like rcp. It has since replaced most such programs. Since scp uses the ssh protocol, the encryption it uses ensures security of your data.
That's it :) Simple, right?
This would copy the file test.html in the machine called "box" (as user anirudh) to the localmachine at path HOMEDIR/work_area/
Interchange the source-destination to copy file in your localmachine to the remote machine.
Since scp is tied to the ssh program, the keys you use to set up passwordless login with ssh works for scp as well.
Got questions? Got something to add to this? Post your comments below :)