Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rudylacrete/a8c474aa6e8b221530a654d1f363f7c8 to your computer and use it in GitHub Desktop.
Save rudylacrete/a8c474aa6e8b221530a654d1f363f7c8 to your computer and use it in GitHub Desktop.
How to ssh to the raspberry pi through the UART bus
Commands found on http://www.instructables.com/id/Connect-the-Raspberry-Pi-to-network-using-UART/
Raspberry part
----------------------------
echo "Starting pppd..."
stty -F /dev/ttyAMA0 raw
stty -F /dev/ttyAMA0 -a
pppd /dev/ttyAMA0 115200 10.0.5.2:10.0.5.1 noauth local debug dump defaultroute nocrtscts persist maxfail 0 holdoff 1
host part
----------------------------
sudo stty -F /dev/ttyUSB0 raw
sudo pppd /dev/ttyUSB0 115200 10.0.5.1:10.0.5.2 proxyarp local noauth debug nodetach dump nocrtscts passive persist maxfail 0 holdoff 1
Then on the host you can do: ssh pi@10.0.5.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment