01-23-2021 https://youtu.be/OY6ODRsp0Sc |
||||||
SCP – Secure Copy |
||||||
Used to
copy files and folders over the network to another host |
||||||
|
||||||
[root@client01
~]# ls anaconda-ks.cfg lvmscript.scr [root@client01
~]# scp lvmscript.scr 192.168.56.120:/tmp |
||||||
|
||||||
[root@client01
.ssh]#
scp lvmscript.scr
192.168.56.120:/tmp The
authenticity of host '192.168.56.120 (192.168.56.120)' can't be established. ECDSA key fingerprint
is SHA256:e3LN1URGQEPwXaMbDeo+aTYev2cOOWnP3WKmaRG9gRU. ECDSA key
fingerprint is MD5:de:11:30:dd:ef:9e:ae:0a:ab:49:16:29:c9:08:36:8f. Are you
sure you want to continue connecting (yes/no)? yes Warning:
Permanently added '192.168.56.120' (ECDSA) to the list of known hosts. root@192.168.56.120's
password: |
||||||
Transfering folder |
||||||
You must make it a .tar file then transfer as single file to preserve Data Integrity |
||||||
[root@client01
~]# mkdir transfer [root@client01
~]# touch file{1..1000} [root@client01
~]# tar -cvf transfer.tar tranfer/ [root@client01
~]# scp transfer.tar
192.168.56.120:/tmp |
||||||
You can
still transfer folders |
||||||
[root@client01
~]# scp -r tranfer 192.168.56.120:/tmp |