SHARING FILES BETWEEN TWO LINUX DEVICES USING ETHERNET

 Hi guys, in this blog I'll be showing you how to share files between two Linux machines using ethernet. 


CONFIGURING THE TWO KALI LINUX MACHINES.

Navigate to the network settings and click on the  to add a network and select Ethernet as shown below.




Click the create button. You can rename the network connection created to kalitokali as shown below then navigate to the IPV4 Settings tab.



While in this tab, click the pull-down arrow at Method and select Link-Local Only as shown below, and click on save.



Now having done that to the two Linux devices you'll see a connection is established. Now to verify if all is well open the terminal and type ifconfig and check whether under the ethernet connection there is an assigned IP address.


SHARING FILES AND FOLDERS.

To share files now we will type the following commands in the terminal.

'''

sudo systemctl start ssh.service --> This command will start the ssh service in Kali Linux

''''

The reason for starting the ssh.service is because we will be using the scp command which uses ssh service. Now, all we have to do is to type the following in our terminal and we will begin sharing the files/folders;

'''
scp file <username the second kali machine>@<itsipaddress>:path e.g.; 
scp test.txt kali@169.287.97.67:/home/kali/Documents
scp test.txt test2.txt test3.txt kali@169.287.97.67:/home/kali/Documents

scp -r folder <username the second kali machine>@<itsipaddress>:path eg.;
scp -r Movies/ kali@169.287.97.67:/home/kali/Videos/

'''

Hope this has been useful. In case of any trouble comment below.

Happy hacking !!

Comments

Popular posts from this blog

SHARING FILES BETWEEN A LINUX AND A WINDOWS MACHINE USING ETHERNET CABLE.

DROZER IN KALI LINUX 2020.4