How to generate a hotspot that does not requires password?

It is not possible to create an open hotspot through wifi hotspot command , because nmcli will generate a password for you (WPA or wep) , the --show-secrets option will be used to print the password.

The easy way to create an open wifi-hotspot is using create_ap command:

To install it run:

git clone https://github.com/oblique/create_ap
cd create_ap
make install

Start the service:

systemctl start create_ap

To create an open access point run:

create_ap wlan0 eth0 MyAccessPoint

or if you are connected through Wifi:

create_ap wlan0 wlan0 MyAccessPoint