![]() ![]() To copy a directory user scp –r Impotent: ![]() Warning: Permanently added '172.168.0.222' (RSA) to the list of known password:įile is successfully transfer to the host 172.168.0.222 in home/tamim directory v Displays debugging messages Example scp authenticity of host '172.168.0.222 (172.168.0.222)' can't be established. ![]() Source-file (directory in this case) recursively r Recursive, so it copies the contents of the Source-file:Is the file or files that are going to be copied to the destination host, it can be a directory but in that case you need to specify the -r option to copy the contents of the directoryĭestination-file:Is the name that the copied file is going to take in the to-host, if none is given all copied files are going to maintain its names Options -p Preserves the modification and access times,Īs well as the permissions of the source-file in the destination-file User: Is the user which have the right to access the file and directory that is supposed to be copied in the cas of the from-host and the user who has the rights to write in the to-host Syntax: scp Description of optionsįrom-host: Is the name or IP of the host where the source file is, this can be omitted if the from-host is the host where you are actually issuing the command You can this way copy files from or to a remote server, you can even copy files from one remote server to another remote server, without passing through your PC. Scp stands for secure cp (copy), which means that you can copy files across an ssh connection that will be encrypted, and therefore secured. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |