Ubuntu – How can i transfer data between two computers using Ethernet cable and FTP software like(gFtp)

ethernetftpnetworking

I want to transfer data between two Linux Ubuntu computers using just Ethernet cable and FTP software like gFtp

Is this possible? because i get connection refused when trying to connect

Best Answer

In order to establish a connection between the two machines using an Ethernet cable, both machines need a static IP of which are on the same IP Subnet.

1. Grab an ethernet cable, and attach it to the primary machine's ethernet port, take the other side of the cable and plug it into the secondary machine's ethernet port.

2. Identify your ethernet interfaces on each computer, it should be either eth0 or something like enp3s0. Take note of those interface names because we're going to need them later. You can do this by simply entering, sudo ifconfig

3. On the primary machine... run this command in your terminal/command line: sudo ifconfig eth0 10.0.0.1 (replace eth0 with the primary machine's ethernet interface.)

4. On the secondary machine... run this command in its terminal/command line: sudo ifconfig eth0 10.0.0.2 (replace eth0 with the second machine's ethernet interface.)

5. Now... The two computers should be able to communicate with each other. You can test this by entering the command, on your primary machine, ping 10.0.0.2 -c 2 ... If you see "64 bytes from 10.0.0.2..." then the communication is working.

6. Connect to the secondary machine (IP Address: 10.0.0.2) using your FTP client... I'm assuming that you have already set up the FTP server on your secondary machine.

If these steps are unsuccessful please be sure to reply to me. The amazing part about this is the ability to configure a DHCP server to automatically assign an IP address to your secondary machine, but this is complicated.