Last active
December 24, 2015 13:29
-
-
Save zankich/6805652 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # run this script when your beaglebone black is connected to your computer through the usb port in order to ssh | |
| # the root password is 'artoo' | |
| #!/bin/bash | |
| bbb="192.168.15.1" | |
| host="192.168.15.2" | |
| sudo ifconfig usb0 $host | |
| # Configure IP forwarding on HOST | |
| sudo iptables -A POSTROUTING -t nat -j MASQUERADE | |
| echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null | |
| ssh root@$bbb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Add this line to your /etc/network/interfaces and then restart your computer | |
| iface usb0 inet static |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment