connect bluetooth device from cli
$ sudo bluetoothctl[bluetooth]# agent on[bluetooth]# scan on[bluetooth]# pair 00:25:56:D1:36:6B[bluetooth]# connect 00:25:56:D1:36:6BLast updated
We use bluetoothctl tool which is command-line to BlueZ
$ sudo bluetoothctlEnable authentication agent
[bluetooth]# agent onRun the scan process
[bluetooth]# scan onPair with the device
[bluetooth]# pair 00:25:56:D1:36:6BConnect to the device
[bluetooth]# connect 00:25:56:D1:36:6Bmore information https://docs.ubuntu.com/core/en/stacks/bluetooth/bluez/docs/reference/pairing/outbound
Last updated