A first go at the ssh api.