If one has a system wide motd configured everything breaks. I disabled for root which allowed me to use machinery, but seems a bit sub-optimal. I did not dig into the ssh setup to see if such a change would be possible.
motd could suppressed by using the SSH option -q, but this also suppresses possible error messages, which are actually needed to show appropiate error messages instead of just giving a backtrace to the user.
If one has a system wide
motd
configured everything breaks. I disabled forroot
which allowed me to use machinery, but seems a bit sub-optimal. I did not dig into the ssh setup to see if such a change would be possible.