Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (26 sloc) 975 Bytes
layout: post
title: 'Hub-ctrl'
permalink: '/hub_ctrl/'
tags: ['usb', 'hub', 'Yubikey', 'control']
<div class="lead">
<p>How can you cheaply control the ports on a usb hub?</p>
<img src="/files/2015/hub_ctrl/hub-ctrl.gif">
On a build server, we wanted to sign various builds using Yubikeys.
For various reasons, we wanted to use several Yubikeys. Unfortunately,
simply plugging multiple Yubikeys on a single host doesn't work because
there's no API to pick which token you want to communicate with.
There are various ways to solve this problem, such as buying expensive
USB hubs. I however figured out that some cheap D-Link hubs let you control
the power at the individual port level.
This technique is also useful when you need to copy a file to a hundred USB flash
<p>Some useful source code: <a href=""></a></p>
You can’t perform that action at this time.