Wanted to learn about SCP because, today, I needed to move something from a server to my local machine and I forgot about the scp command which would have made it easier.
Secure Copy protocol (SCP) is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (ssh) protocol. "SCP" commonly refers to both the Secure Copy Protocol and the program itself. According to OpenSSH developers in April 2019, SCP is outdated [...] and they recommend the use of more modern protocols like SFTP and rsync for file transfer.
The SCP is a network protocol which supports file transfers between hosts on a network. SCOP uses Secure Shell (SSH) for data transfer and uses the same mechanisms for authentication, thereby ensuring the authenticity and confidentiality of the data in transit. A client can upload files and request files from the server.
The remote SCP process can operate in one of two modes:
source mode, which reads files (usually from disk) and sends them back to the client
sink mode, which accepts the files sent by the client and writes them (usually to disk) on the remote host.
The SCP program is a software tool implementing the SCP protocol as a service daemon or client. It is a program to perform secure copying.
The most widely used SCP program is the OpenSSH command line scp program, which is provided in most SSH implementations. The scp program is the secure analog of the rcp command.
Syntax
$ scp<LocalSourceFile><user@remotehost:directory/TargetFile># Copying file to remote host $ # Copuing file from remote host and recursively copying folder from remote host $ scp user@remotehost:directory/SourceFile LocalTargetFile $ scp-r user@host:directory/SourceFolder LocalTargetFolder
The Secure Copy Protocol implements file transfers only, GUI SCP clients are rare, as implementing it requires additional functionality.
Are you sure you want to delete this article section? You can not undo this change.
Add a Comment
Annotate Article
Share Article
Successfully copied article URL to clipboard!
Something went wrong copying the article URL to the clipboard.
Successfully copied editor state to clipboard!
A previous, saved version of this article is saved. To compare the current version of the article with the previous version - or to replace the current version with the saved version - click the icon above the text editor.
Successfully copied URL to clipboard!
Copied code to clipboard.
Copied TeX code to clipboard.
Uploaded file must be an image of type .jpeg, .jpg, .png, .webp, .gif, .bmp, or .svg.
Image Size must be less than 5MB.
Uploaded file must be an image of type jpeg, jpg, png, webp, avif, tiff, or svg.
Something went wrong uploading the image to the database. Try reloading the page.
The maximum number of images you can upload is 30.
There was an error taking an image using the device's camera. Try uploading an image instead.
Uploaded file must be an audio file.
Audio file must be an audio file of type .m4a, .flac, .mp3, .mp4, .wav, .wma, .aac, .webm, or .mpeg.
Audio file must be less than 300 MB in size.
Something went wrong uploading the audio file. Try reloading the page.
The maximum number of audio files you can upload is 10.
There was an error capturing an audio recording using the device's microphone. Try uploading an audio recording or video instead.
Uploaded file must be an video file.
Video file must be an audio file of type .mp4, .mov, .avi, .wmv, .avchd, .webm, or .flv.
Video file must be less than 300 MB in size.
Something went wrong uploading the video file. Try reloading the page.
The maximum number of video files you can upload is 10.
There was an error taking a video using the device's camera / microphone. Try uploading a video instead.
Comments
You have to be logged in to add a comment
User Comments
There are currently no comments for this article.