To perform this operation, your computer needs to have ssh.
If it is not installed, you can refer to my article
Installing SSH on Windows System
It's actually very simple, but you need to know which path your file is in.
If you don't know, for example, I know that the file I want to download is called dist,
but I don't know which directory it is in. We can enter it in the server.
find / -name "dist"
In this way, all files named dist will be brought out
, and what we want is this one in the root directory.
We can enter it in the terminal of our computer
scp -r 用户名 如果你没有设置过 就是root@服务器公网地址:/root/dist E:/测试服务器传输
This is equivalent to transferring the dist under the root on the server to the test server transfer directory under our local E drive.
Then you need to enter the server password and it will start transferring.
Finally, our stuff was successfully copied.