Telnet File Transfer between two linux machines

Rajeev Das picture Rajeev Das · Apr 4, 2013 · Viewed 65.7k times · Source

I want to send a file from one Linux machine with IP suppose "192.168.2.25" to other Linux machine that's a server "192.168.2.110"

how can i do that by using Telnet command??

Answer

Keith Morgan picture Keith Morgan · Nov 5, 2013

A simple option is to use netcat (nc). This is particularly useful on stripped down Linux systems where services like ssh and ftp are turned off.

On destination machine run the following command: nc -l -p 1234 > out.file

On source machine run the following command: nc -w 3 <dest-ip-adr> 1234 < out.file

For more details look, for example, here.

There are also netcat implementations for Windows, e.g. ncat.