Background: The test project is deployed to another server above.
Tools Recommended: WinSCP, Xshell
It should be used to copy files. linux, the command is used remote file copy scp.
scp is security copy, for files or directories from a Linux system is copied to another Linux system. format:
scp local Linux file system path to the remote user name @IP Address: Remote File System absolute pathname
For example:
Command: scp /opt/fire/app/bin/test.py [email protected]: / opt / Fire / App / bin /
Command is entered, you will be asked to enter "192.168.101.XXX" server root password, and then start a remote copy of data.
operation result:
Open WinSCP, you can see the files have been copied correctly
Copied successfully.
If it is from another machine to copy files to the machine, the syntax is as follows:
Linux absolute path to the local file system path: scp remote user name @IP address
We just test.py native file deleted, copied from the earlier machine
command:
scp [email protected]:/opt/fire/app/bin/test.py /opt/fire/app/bin/
The transfer is successful, view the results: