From the course: Learning SFTP
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Exploring SCP and SSHFS - FTP Tutorial
From the course: Learning SFTP
Exploring SCP and SSHFS
- [Instructor] Before we move on to focus on SFTP, I want to mention two other methods that we can use with SSH for copying files between systems securely. These are SCP and SSHFS. SCP, which stands for Secure Copy, allows us to write a command-line command that will copy a file from one system to another using SSH. Generally speaking, SCP is best used when we're working at the command-line or when we need to include a file copy operation via SSH in a script of some kind. That's because SCP works in much the same way we would use to copy a file locally from one location to another on the same system. SFTP, as we'll see in a little bit, works differently, but also transfers files in a secure way. This is what an SCP command looks like. If we're working in a terminal or writing a script and we wanted to copy the file myfile.zip from the current working directory on our local system to the document's directory in our home directory…