I remember having an issue with rancid (https://github.com/haussli/rancid) ssh a few years back. I found this in the forums:
viewtopic.php?t=180391
I've since been using oxidized (https://github.com/ytti/oxidized) to backup routers and it doesn't have an issue.