# receive send both install yum install netcat -y # receive ip nc -l -p 12345 > file.tgz # send ip nc <receive ip> 12345 < file.tgz