I have setup a Bluetooth Network PAN via Blueman's Local Services → Network that looks like this:
However whenever I pair a device to my Ubuntu box so that it can share its network connection, I have to manually confirm the pairing like so:
On the Phone I'll see a dialog that states:
Bluetooth Pairing Request
"Ubuntu Box" would like to pair with your
iPhone. Confirm that this code is
displayed on "Ubuntu Box". 127459After which, a set of "accept/deny" notifications pop up on my Ubuntu box which goes one-by-one through the capabilities that should be granted to the iPhone, BNEP being the networking capability, but I'm also asked about Audio sharing:
Question
I would like to know if it's possible to configure Ubuntu such that when any device (not just my iPhone) pairs with my Ubuntu box, it is automatically paired/trusted and that all capabilities are granted to it without my interaction. This box is in my home, and I want to auto-pair out of convenience for setting up a local network.
11 Answer
The trick was to run my own auth agent, here's what I did:
- First I disabled the AuthAgent plugin in Blueman (Bluetooth tray icon -> Plugins -> AuthAgent (uncheck))
sudo apt-get install bluez-toolsbt-agent --capability=NoInputNoOutput
After that, I was able to pair and connect without any confirmation on the Ubuntu Box