


To copy a file to a host: $ scp myfile copy a file (or directory) from a host to the local system: $ scp target Typically, the syntax of scp is like the syntax of cp (copy):

scp is the secure analogue of the rcp command. It is installed as part of most SSH implementations and comes as standard on the JASMIN transfer servers. Scp is another basic command-line tool for secure copying between two machines. $ rsync myfile The first two lines are the standard method for setting up the SSH agent in order to allow connections without prompting for a passphrase each time. $ ssh-add ~/.ssh/id_rsa_jasmin # or other key filename as needed Here is a simple example using rsync over SSH to copy a file to a Group Workspace on JASMIN: $ exec ssh-agent $SHELL (Square brackets indicate optional parameters.)įor more information visit the official rsync website. where SRC is the file or directory (or a list of multiple files and directories) to copy from, and DEST represents the file or directory to copy to. Once connected, it will invoke another copy of rsync on the remote host, and then the two programmes will talk to each other over the connection, working together to determine which parts of mydata are already on the remote host and don't need to be transferred over the connection. $ rsync mydata use SSH to connect as user to remote-host. Rsync is typically used to synchronise files and directories between two different systems, one local and one remote.
