liveBook · Manning

SCP

As explained in LLMs in Production

The Secure Copy Protocol is a protocol for securely copying files between hosts over an SSH connection.

SCP securely moves files between hosts over SSH. In a cloud workflow, it transfers local project files into a newly created VM, either one file or an entire directory. section 5.1.1

Copy files into a Google Cloud VM

After creating and connecting to a VM, copy a requirements file with `gcloud compute scp requirements.txt INSTANCE_NAME:~/requirements.txt`, or recursively upload `local-app-folder` to `~/vm-app-folder`. section 5.1.1

$ gcloud compute scp requirements.txt ${INSTANCE_NAME}:~/requirements.txt
$ gcloud compute scp --recurse ~/local-app-folder/ 
${INSTANCE_NAME}:~/vm-app-folder

Browse the exact `gcloud compute scp` commands for single-file and recursive directory uploads. section 5.1.1

How LLMs in Production covers it

How deep it goes
Defines SCP and demonstrates two transfer forms, but stops short of protocol internals or security configuration.
Examples
Uses `requirements.txt` and a local application directory as transfer examples.
What it assumes
Assumes a configured Google Cloud VM and SSH access, while showing where SCP fits in initial setup.
What you can do after
Operate file transfers via the Google Cloud CLI using single-file and recursive SCP commands.
How it connects
Connects SCP with SSH, virtual machines, Google Cloud, and remote development environments.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of LLMs in Production. The section links point to the parts of the book it draws on.