Following are commands to copy files from one system to another:-
_____________________________________LOGIN_____________________________________
first, log in to person systems from which you have to copy the files.
ssh elitecore@10.12.115
here elitecore is the username of that person system and 10.12.115 is the IP address of that person system.
to get the IP address of the system type in the terminal:-
ifconfig
it will show your io address in your system.
after that type password of that system.
[elitecore@shashi-jaiswal ~]$ ssh elitecore@10.121.21.115
The authenticity of host '10.121.21.115 (10.121.21.115)' can't be established.
ECDSA key fingerprint is SHA256:ZeRadrZ3eR4dOZ8BRz4Mso0By+qriP9ZEqtKPnadSRU.
ECDSA key fingerprint is MD5:c4:72:fb:85:a4:b2:df:0b:12:16:a2:34:4f:9d:75:8e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.121.21.115' (ECDSA) to the list of known hosts.
elitecore@10.121.21.115's password:
Last login: Fri Aug 16 18:04:47 2019 from 10.121.21.137
[elitecore@dushyant-nasit ~]$ scp /opt/software/sts-java-11
usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2
Now to copy files from that person system to your system.
scp <file-name> elitecore@10.121.21.112:
here <file name> is the name of file you wish to copy.
to get the file name you can do ls command to search in that directory.
if the file, not a zip file then type
scp -r <file-name> elitecore@10.121.21.112
scp CXCOMM190500P_1-70004140.ZIP elitecore@10.121.21.112:
The authenticity of host '10.121.21.112 (10.121.21.112)' can't be established.
ECDSA key fingerprint is SHA256:ZeRadrZ3eR4dOZ8BRz4Mso0By+qriP9ZEqtKPnadSRU.
ECDSA key fingerprint is MD5:c4:72:fb:85:a4:b2:df:0b:12:16:a2:34:4f:9d:75:8e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.121.21.112' (ECDSA) to the list of known hosts.
elitecore@10.121.21.112's password:
CXCOMM190500P_1-70004140.ZIP 100% 1454MB 90.9MB/s 00:16
______________________________________________________________________________
No comments:
Post a Comment