NetworkingLesson 35Free preview
Bash Secure Copy (scp)
This lesson is part of Bash · All levels
Summary
The scp command copies files between the local computer and the remote server via an SSH connection so that the data is encrypted. The method of use is similar to cp, only the destination or source can be written in user@host:path format. For the folder, the -r option is required to copy the entire contents.
Key points
- Scp file user@host:/purpose of copying to server
- Scp user@host:/source. download from the server
- r is required for directories
- Walking over SSH so it's safe
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.