Copy A File From Localhost to Remotehost


DESCRIPTION:
  • Consider we want to copy test.txt file from local machine(192.168.1.10) to remote  machine(192.168.2.5)
  • We need to use scp(secure copy) command to establish above need
  • For this you want the root password of the remote host.

COMMAND:

    scp <source file> <remote username>@<remote ipaddress>:<dest path with file name>

    example:
    scp test.txt root@192.168.2.5:/home/user/Desktop/test.txt
  • It will ask the remote machine password to enter
  • Now file will successfully copy to remote machine 



No comments:

Post a Comment