Linux

How to install netcat nc on linux using yum

What is Netcat

Netcat, also known as “nc,” is a command-line tool that provides a simple way to establish and interact with TCP and UDP connections over a network. Netcat can act as both a client and a server and can be used to send and receive data over the network.

Netcat is a powerful and flexible tool that can be used for a variety of purposes, including debugging network connections, transferring files, and port scanning. It can be used to create a simple backdoor on a remote system, connect to remote systems and transfer files, and to test and verify network services.

Netcat is commonly installed on Unix and Unix-like operating systems, but it is also available for Windows and other operating systems. The tool has a variety of options and features, making it a popular choice for network administrators and security professionals.

Also Read: Install Terraform on Linux

Steps to Install netcat ‘nc’ on Redhat/Centos

1: Login to the Redhat/Centos server and become a root user.

sudo su

2: Install netcat

yum install nc -y

3: Command to check the installed netcat package

rpm -qa | grep -i nmap-ncat

4: Test the nc command

As we have now set with the nc package, let us test the functionality of the netstat command and observe the output

We will test the network connectivity between google on port 443 and 22

Sample Output:-

[root@CloudScope]# nc -v google.com 443
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 173.194.193.139:443.

[root@CloudScope]# nc -v google.com 22
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connection to 173.194.194.113 failed: Connection timed out.
Ncat: Trying next address…

Also Read:

Transfer files using netcat

Leave a Reply

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