SCP Command Flashcards
What is SCP, and what is its primary function?
secure copy. To copy the file or directory in an encrypted manner from your local machine to the remote server or vice versa
How can SCP be utilized to transfer files between two remote servers?
works over ssh, copies the file from one server to another server after encrypting it.
Could you provide the fundamental syntax of the SCP command?
push mechanism – scp
<source> <user@ipaddress:destination>
pull mechanism - scp <user@ipaddress:source> <destination>
Is it possible to use SCP to copy entire directories? If so, what is the method?
yes. scp -r dir1
<user@ipaddress:destination> scp -r <user@ipaddress:source> <destination>
What sets SCP apart from SFTP (Secure File Transfer Protocol)?
SCP securely copys files, replying on SSH to encrypt data during transfer. SFTP is a more feature-rich protocol that provides a full-featured file transfer service with advanced file management capabilities, both from the command line and through graphical interfaces.
Regarding file transfers across networks, does SCP qualify as a secure method? Why or why
not?
it is secure because it encrypts the data
Which communication port is typically associated with SCP?
22
Could you explain the mechanism of SCP authentication when establishing a connection to a
remote server?
scp works over ssh, when we copy the file, it first gets the fingerprints of the
server, local to remote server uses push mechanism. encrypts the file and then copies the file.