25%

🚀

4

SCP (Secure Copy) - Unix Linux. cp

Merion Academy


SCP SSH (Secure Shell). , , .

 SCP Linux:

SCP

SCP

scp .

~/ home/user .

*.

, /~/*.txt SCP , .txt.

, . /home/user test.txt , :

scp test.txt username2@destination:/location2

.txt username2, :

scp *.txt username2@destination_host:/~/

, SCP .

, :

scp test.txt username2@destination_host:/user/home/user1test.txt

test.txt , user1test.txt .

SSH- , 22 , P, :

scp P 1234 test.txt user2@destination_host:/location2/

test.txt , 1234.


.

:

scp user1@host1.com:/files/test.txt user2@user2.com:/files

test.txt /files host1.com /files /host2.com. user1 user2 .


SCP

, , tmux.

, .

, tmux, :

tmux -V

SCP

scp . .

, Enter.

.


, .

, . , root .


SCP

SCP:

scp [options] username1@source_host:/location1/file1 username2@destination_host:/location2/file2

scp:

  • P - SSH
  • p - ( )
  • q - , ( )
  • C -
  • r - -

, , - () , . .

, . :

scp user@local_system:/home/user/test.txt admin@remote_system:/home/user

test.txt .

SCP - :

scp user@from_host:file.txt /local/directory/

, scp .


>