SCP Command Flashcards

1
Q

What is SCP, and what is its primary function?

A

secure copy. To copy the file or directory in an encrypted manner from your local machine to the remote server or vice versa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can SCP be utilized to transfer files between two remote servers?

A

works over ssh, copies the file from one server to another server after encrypting it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Could you provide the fundamental syntax of the SCP command?

A

push mechanism – scp
<source> <user@ipaddress:destination>

pull mechanism - scp <user@ipaddress:source> <destination>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Is it possible to use SCP to copy entire directories? If so, what is the method?

A

yes. scp -r dir1
<user@ipaddress:destination> scp -r <user@ipaddress:source> <destination>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What sets SCP apart from SFTP (Secure File Transfer Protocol)?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Regarding file transfers across networks, does SCP qualify as a secure method? Why or why
not?

A

it is secure because it encrypts the data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which communication port is typically associated with SCP?

A

22

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Could you explain the mechanism of SCP authentication when establishing a connection to a
remote server?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly