Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to connect to a USB Armory via ssh on linux

Based on the Host communication instructions, but with a tweak for when the usb0 address is not found:

$ /sbin/ip link set usb0 up
Cannot find device "usb0"

Because of the predictable network interface name scheme, though, usb0 may be renamed to something else:

$ sudo dmesg | grep usb0
[ 3640.551939] cdc_subset 1-1:1.1 usb0: register 'cdc_subset' at usb-0000:00:14.0-1, Linux Device, 32:c9:95:19:54:f8
[ 3640.560031] cdc_subset 1-1:1.1 enp0s20f0u1i1: renamed from usb0

Use enp0s20f0u1i1 to complete the setup and connect:

$ sudo /sbin/ip link set enp0s20f0u1i1 up
$ sudo /sbin/ip addr add dev enp0s20f0u1i1
$ sudo /sbin/iptables -t nat -A POSTROUTING -s -o wlan0 -j MASQUERADE
$ sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
$ ssh usbarmory@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment