ologynsa.blogg.se

Scp on mac command line
Scp on mac command line











scp on mac command line

To connect to Rivanna with sftp, execute the following in the command line interface: sftp prompted, enter your password. Secure FTP or sfpt is an interface built on top of scp to mimic the behavior of ftp. The -q option suppresses the progress and debugging messages. The -p option preserves modification time, access time, and ownership from the original file. The -r option recursively copies directories.įrom your computer to /project storage: scp -r my_directory /project storage to your computer: scp -r /target_directory In this example, the mycode directory must exist in your scratch directory.

scp on mac command line

  • my_directory is the directory to which you wish to copy the file.įrom your computer to /project storage: scp my_file /project storage to my_directory on your computer: scp /my_directory.
  • mygroup_name is the name of your /project directory.
  • my_file is the file you would like to transfer.
  • The following examples detail how to transfer data between your local computer and /project storage on Rivanna.
  • Copying from local to remote: scp source_file Copying from remote to local: scp target_file.
  • In both cases we are starting from the local system.īy default, scp works from the level of the directory in which it is invoked. The following syntax enables copying from local to remote or vice versa. Scp uses the secure shell (SSH) protocol to transfer files between your local machine and a remote host, or between two remote hosts. Standard Linux tools can efficiently transfer a small to moderate quantity of data to or from Rivanna.













    Scp on mac command line