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 (http://nmap.org/ncat)
Ncat: Listening on 0.0.0.0:2223
Ncat: Connection from 172.17.17.3.

And on sender side:

[root@server2 ~]ncat  --send-only 172.17.17.111 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.