Showing posts with label localhost. Show all posts
Showing posts with label localhost. Show all posts

Wednesday, 7 June 2017

Copy A File From Localhost to Remotehost

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 



{ Read More }


Saturday, 29 April 2017

Copy A File From RemoteHost to LocalHost

Copy A File From RemoteHost to LocalHost


DESCRIPTION:
  • Consider we want to copy test.txt file from remote machine(192.168.2.5) to local machine(192.168.1.10)
  • 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  <remote username>@<remote ipaddress>:<source with path> <dest path with file name>

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

{ Read More }