Turns out doing an echo here breaks scp. Whoops.