Using ncat to transfer files without SSH

Sometimes you want to transfer some files between two servers but with no SSH installed.

There are a lot of ways to do it but the simplest one is to use ncat from nmap package.

On receiver you should run:

[root@server1 ~]# ncat -v -lp 2223 < ~/fileNcat: Version 5.21 (
Ncat: Listening on
Ncat: Connection from

And on sender side:

[root@server2 ~]ncat --send-only 2223 < ~/file

Didn’t find the answer to your question? Ask it our administrators to reply we will publish on website.

Leave a Reply

Your email address will not be published. Required fields are marked *