Make a TCP connection from Bluetooth.
SSH into a Linux machine, which is headless (e.g. Raspberry Pi Zero 2 W) or has a bad network configuration without using a Display Monitor.
When you have network connection:
- Run
make deviceto build the binary for device. - Put the binary into
/usr/local/bin. - Move the
.servicefile into/etc/systemd/system. - Enable:
sudo systemctl daemon-reload && sudo systemctl enable tcp-over-bt.service
-
Run
make host -
Create a SSH config in
~/.ssh/config:Host zero ProxyCommand tcp-over-bt
-
ssh zeroand wait patiently, it will discover the first available device.
Note: Only one SSH connection is allowed at a time, which is a characteristic of Bluetooth connections. If you want multiple shells, use tmux.
There's no Bluetooth Paring. Anyone can connect to the same device. Authentication is done by SSH.
- Flow Control: Sending is too fast, while Recv is too slow.
- Allow more than one client.