As a beginner, I had many issues with getting a
No session was created status on Metasploit. For some machines, I managed to work around it, but for others nothing would work. I could not find an answer on the forums hence decided to post this.
After much research I discovered that it might be that a firewall is enabled and blocking some connections back to Metasploit.
For example, my system was using the ufw firewall.
sudo ufw status and found that it was active.
You can disable it using
sudo ufw disable
Found a guide to help with enabling/disabling the firewall's on Linux:
Hope this helps anyone dealing with the
No session was created issue!