
It is 10 times faster than not using the “ -C” parameter. Transferred: sent 8905840, received 15768 bytes, in 162.5 secondsīytes per second: sent 54813.9, received 97.0ĭebug1: compress outgoing: raw data 97571111, compressed 8806191, factor 0.09ĭebug1: compress incoming: raw data 7885, compressed 3821, factor 0.48Īs you can see, when you are using compression, the transfer process is done in 162.5 seconds. Sending file modes: C0600 97517300 messages.log SCP – Transfers File with Compression Executing: program /usr/bin/ssh host 202.x.x.x, user mrarianto, command scp -v -p -t.ĭebug1: Host '202.x.x.x' is known and matches the RSA host key.ĭebug1: Next authentication method: publickey You may compare the result to the command below using the “ -C" parameter. Transferred: sent 97614832, received 25976 bytes, in 1661.3 secondsīytes per second: sent 58758.4, received 15.6Ĭopying files without the “ -C” parameter will result in 1661.3 seconds. SCP Transfers File Without Compression Executing: program /usr/bin/ssh host 202.x.x.x, user mrarianto, command scp -v -p -t.ĭebug1: /etc/ssh/ssh_config line 19: Applying options for *ĭebug1: Connecting to 202.x.x.x port 22.ĭebug1: identity file /home/pungki/.ssh/id_rsa type -1ĭebug1: Found key in /home/pungki/.ssh/known_hosts:1ĭebug1: ssh_rsa_verify: signature correctĭebug1: Trying private key: /home/pungki/.ssh/id_rsaĭebug1: Next authentication method: passwordĭebug1: Authentication succeeded (password).Īuthenticated to 202.x.x.x (:22). $ scp -p scp-cheatsheet.pdf :/home/tecmint/.

The “ -p” parameter will preserve files’ original modification and access times while copying files along with the estimated time and the connection speed will appear on the screen.

$ scp -v :/home/ravi/ssh-cheatsheet.pdf :/home/anusha/.Ĭopy Files with Original Creation Date and Time The following command copies a file “ ssh-cheatsheet.pdf” from a remote host to another remote host system under /home/tecmint directory. SCP – Copy File to Local System Executing: program /usr/bin/ssh host 192.168.0.183, user tecmint, command scp -v -f /home/ravi/ssh-cheatsheet.pdfĬopy File From Remote Host to Another Host $ scp -v tecmi :/home/ravi/ssh-cheatsheet.pdf /home/tecmint/. The following command copies a file “ ssh-cheatsheet.pdf” from a remote host to a local system under /home/tecmint directory.

OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f ĭebug1: Reading configuration data /etc/ssh/ssh_configĭebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no filesĭebug1: /etc/ssh/ssh_config line 21: Applying options for *ĭebug1: Connecting to 192.168.0.183 port 22.ĭebug1: identity file /home/tecmint/.ssh/id_rsa type -1ĭebug1: identity file /home/tecmint/.ssh/id_rsa-cert type -1ĭebug1: identity file /home/tecmint/.ssh/id_dsa type -1ĭebug1: identity file /home/tecmint/.ssh/id_dsa-cert type -1ĭebug1: identity file /home/tecmint/.ssh/id_ecdsa type -1ĭebug1: identity file /home/tecmint/.ssh/id_ecdsa-cert type -1ĭebug1: identity file /home/tecmint/.ssh/id_ecdsa_sk type -1ĭebug1: identity file /home/tecmint/.ssh/id_ecdsa_sk-cert type -1ĭebug1: identity file /home/tecmint/.ssh/id_ed25519 type -1ĭebug1: identity file /home/tecmint/.ssh/id_ed25519-cert type -1ĭebug1: identity file /home/tecmint/.ssh/id_ed25519_sk type -1ĭebug1: identity file /home/tecmint/.ssh/id_ed25519_sk-cert type -1ĭebug1: identity file /home/tecmint/.ssh/id_xmss type -1 SCP – Copy File to Remote Linux Server Executing: program /usr/bin/ssh host 192.168.0.183, user tecmint, command scp -v -t /home/tecmint/.
