0% found this document useful (0 votes)
45 views5 pages

RHCSA-17 Copying Files Between System Securely

This document discusses different commands for copying files between systems: SCP, SFTP, and rsync. SCP copies files securely over SSH. SFTP is an interactive secure file transfer program similar to FTP but over SSH. Rsync is a versatile remote file copying tool that reduces data transfer by sending only differences between files and supports backups and mirroring. Examples are provided for using each command to copy files from one system to another.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views5 pages

RHCSA-17 Copying Files Between System Securely

This document discusses different commands for copying files between systems: SCP, SFTP, and rsync. SCP copies files securely over SSH. SFTP is an interactive secure file transfer program similar to FTP but over SSH. Rsync is a versatile remote file copying tool that reduces data transfer by sending only differences between files and supports backups and mirroring. Examples are provided for using each command to copy files from one system to another.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Redhat Certified System Administrator

Technology Course RH-124


(RHCSA)

BY- Ankit Shukla


Copying files between system
• SCP command :-
scp secure copy (remote file copy program). scp copies files between
hosts on a network. It uses ssh for data transfer, and uses the same
authentication and provides the same security as ssh.

192.168.10.10/24 192.168.10.20/24
# scp ‘source-file-name’ ‘destination-location’

[root@srv ~]# scp -r as/ [email protected]:/root/Desktop/

Here DNS should be configured


[root@srv ~]# scp -r as/ [email protected]:/root/Desktop/
Copying files between system
• SFTP command :-
Secure file transfer program. sftp is an interactive file transfer program,
similar to ftp, which performs all operations over an encrypted ssh transport.
get -- Retrieve the remote-path and store it on the local machine.
put -- Upload local-path and store it on the remote machine.
quit -- Quit sftp.
[root@srv ~]# sftp 192.168.10.10
[email protected]'s password:XXXXX
Connected to 192.168.10.10…
sftp> lcd data/ “local machine”
sftp> mkdir srvdata “Remote Machine”
sftp> cd srvdata “Remote Machine”
sftp> put srv* “upload data”
sftp> get client* “Download data”
[root@srv ~]# man sftp “For more information”
Copying files between system
• rsync command :-
rsync a fast, versatile, remote (and local) file-copying tool.
It offers a large number of options that control every aspect of its behavior
and permit very flexible specification of the set of files to be copied. It is
famous for its delta-transfer algorithm, which reduces the amount of data
sent over the network by sending only the differences between the source
files and the existing files in the destination. Rsync is widely used for
backups and mirroring and as an improved copy command for everyday
use.
# scp ‘source-file-name’ ‘destination-location’

[root@srv Desktop]# rsync -avz test.tar [email protected]:/root/Desktop/

[root@srv Desktop]# rsync -arv data [email protected]:/root/Desktop/


Thank you

BY- Ankit Shukla

You might also like