Scp implements file transfer between Mac and Linux servers
1. upload files to Linux server on mac
Scp file name username @ Server ip: target path
For example: scp/Users/test/testFile test@www.bkjia.com:/test/
2. Upload the folder to the Linux server on mac, which is more-r than uploading files.
Scp-r folder directory username @ Server ip: target path
For example: scp-r/Users/test/testFolder test@www.bkjia.com:/test/
3. download files from Linux server to mac
Scp username @ Server ip: target path of the file path
Such as: scp test@www.bkjia.com:/test/testFile/Users/test/
4. the Linux Server downloads the folder to mac, which is more-r than the downloaded file
Scp-r username @ Server ip: file path target path such as: scp-r test@www.bkjia.com:/test/testFolder/Users/test/
The blue font is the content to be replaced.
Configure scp to transfer files between Linux and Unix without a password
Cp/scp command + scp command in Linux
CentOS cannot use scp command Solution
Copy files between two Linux Hosts using scp
Use the scp command to transfer files between Linux Hosts
Use scp server to implement information interaction between Linux and Linux
This article permanently updates the link address: