How to perform port scan using Nmap on Ubuntu 20.04

 

 

 

Port scanning can identify open network ports, as well as available services on that particular network, providing security experts with insight into potential vulnerabilities on that network. 

 

 

 

 

 

 

 

Configure VPSie cloud server

 
  1. Sign in to your system or register a newly created one by logging in to your VPSie account. 
  2. Connect by SSH using the credentials we emailed you.
  3. Once you have logged into your CenOS instances and update your system.

 

apt-get update && apt-get upgrade -y

 

 

Check that your Ubuntu 20.04 system is fitted with the NMAP port scanning tool before you begin. For installation details, Click Here.

 

 

 

 

 

 

So let’s get started,

 

 

 

 

 

Check all open TCP ports on remote host 1.1.1.1

 

 

 

# nmap 1.1.1.1

 

 

 

Scan all TCP and UDP ports on remote host 1.1.1.1

 

 

 

# nmap -sUT 1.1.1.1

 

 

 

The following command will scan remote host 8.8.8.8, TCP port 22,

 

 

 

# sudo nmap -p 22

 

 

 

 

Scan remote host 8.8.8.8, UCP port 22,

 

 

# nmap -sU -p 22 1.1.1.1

 

 

Check the TCP and UDP ports of a remote host 1.1.1.1,

 

 

# nmap -sUT --open 1.1.1.1

 

 

 

Check the TCP ports on your Ubuntu system,

 

 

 

# nmap localhost






I hope you have found this article useful, and I hope you have gotten some of information from it,





 

 

 

 

Try VPSie for free today!