Re: nmcli can not join hidden networks?



Would it be possible to write a small script/app that would interface directly with the dbus and send the correct information/settings to network-manager?


On Thu, Jul 9, 2015 at 8:15 AM, Dan Williams <dcbw redhat com> wrote:
On Wed, 2015-07-08 at 16:17 -0600, Preston Price wrote:
> System details:
> Ubuntu 14.04
> nmcli v. 0.9.8.8
>
> I've spent the afternoon Googling and I'm out of ideas.
> It appears that there is no way to connect to a hidden SSID from nmcli.
>
> If I, for example try:
> *$ sudo nmcli dev wifi con '<SSID>' password '<Password>' name 'hidden AP'*
>
> I get an error response:
> *$ Error: No network with SSID '<SSID>' found.*
>
> I can use the network manager applet to create/connect to this hidden AP,
> but I need a non-GUI/command-line-only solution. I don't see any other
> appropriate options/flags to set in the nmcli command.
>
> Is there some secret sauce I'm missing?

I don't think you're missing anything; this just seems like a deficiency
in nmcli.  One thing you could try instead (while the bug gets fixed) is
to create the connection once, set the "wireless.hidden" property to
true, and then 'nmcli con up <connection name>".

Also note that 'nmcli dev wifi connect' will create a new connection
each time (I think), so after the first time you connect successfully,
you can just use "nmcli con up <name>" instead.

I filed https://bugzilla.gnome.org/show_bug.cgi?id=752173 for this
issue.

Thanks!
Dan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]