Last active
July 14, 2025 02:41
-
-
Save SimpleZn/95564a72fe7892caafc5bf5188f4dca8 to your computer and use it in GitHub Desktop.
upload local files to remote server by using SCP protocol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scp -r /Users/trace/Documents/GitHub/curry-haven/dist/spa/* root@your-ip:/var/www/static-site | |
| SCP: The secure copy command, which is used for file transfer via the SSH protocol. | |
| -r: for `Recursive` | |
| /Users/trace/Documents/GitHub/curry-haven/dist/spa/: | |
| Local source path: The GitHub project directory of user trace under the MacOS system | |
| /* indicates copying all files and subdirectories in the directory (but does not include the spa directory itself) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment