Use SSH to transfer files under Mac

Source: Internet
Author: User

1, downloading files from the server SCP [email protected]:/Path/filename/var/www/local_dir (local directory)//For example SCP [email protected]192.168.0.101:/var/www/test.txt Download the/var/www/test.txt file on the 192.168.0.101 to/var/www/local_dir (local directory)2, uploading local files to the server SCP/Path/filename [Email protected]:/Path//For example SCP/var/www/test.php [email protected]:/var/www/upload the test.php file from the/var/www/directory to 192.168.0.101 on this serverin the catalog3, download the entire directory from the server scp-r [email protected]:/var/www/remote_dir/(remote directory)/var/www/local_dir (local directory)///For example: SCP-R [Email protected]:/var/www/test/var/www///4, upload directory to server scp-r local_dir [email protected]: Remote_dir///For example: scp-r test [email protected]192.168.0.101:/var/www/upload the test directory under the current directory to the server's/var/www/Directory Note: The target server is opening write permissions. 

Original: http://www.cnblogs.com/jiangyao/archive/2011/01/26/1945570.html

Transfer files using SSH under the Mac (GO)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.