Skip to content

Instantly share code, notes, and snippets.

@SimpleZn
Last active July 14, 2025 02:41
Show Gist options
  • Select an option

  • Save SimpleZn/95564a72fe7892caafc5bf5188f4dca8 to your computer and use it in GitHub Desktop.

Select an option

Save SimpleZn/95564a72fe7892caafc5bf5188f4dca8 to your computer and use it in GitHub Desktop.
upload local files to remote server by using SCP protocol
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