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)