前提として、sshによる接続が完了していること。
以下、sshでの操作
1)bluetoothctlを起動
sudo bluetoothctl
Agent registered
[bluetooth]#
2)bluetoothをスキャン
キーボードをペアリング状態にしてから
[bluetooth]# scan on
Discovery started
[NEW] Device xx:xx:xx:xx:xx:xx キーボードの商品名
3)ペアリング
[bluetooth]# connect xx:xx:xx:xx:xx:xx
Attempting to connect to xx:xx:xx:xx:xx:xx
Connection successful
4)信頼設定
[bluetooth]# trust xx:xx:xx:xx:xx:xx
Changing xx:xx:xx:xx:xx:xx trust succeeded
再起動しても自動で接続されるようになる