From a mikrotik CCR router, I’m attempting to connect to a cisco switch using SSH
I confirm SSH connection works fine without keys (ie: with interactive password typing)
I have imported private/public keys, and when those are imported, I am getting this error message back
error:0D078079:lib(13):func(120):reason(121)
Put this way it of course does, but you haven’t stated before that you can use the key to log in to the Cisco from the Mac - you’ve only stated that you’ve generated the key on the Mac.
So all in all - you can log in to the Cisco from the Mikrotik using password authentication, you can log in to the Cisco from the Mac using a key, but using the same key on Mikrotik doesn’t work. Now can you connect using the same key from the Mikrotik somewhere else than to the Cisco? Theoretically the Mikrotik may have problems to handle the key no matter where it attempts to connect.
After clarifying this, it makes sense to report this to support@mikrotik.com, including a key specially made solely for the purpose of demonstrating the issue to Mikrotik, which you will then remove from all your systems as a security measure.
I would say when you used type rsa and it works on the Mac but not on the MikroTik the key type is not the issue.
(either when you use old types that could be no longer supported (dsa) or new types that are not yet supported by some dated equipment (ed25519) that could have been the problem)
That’s a great idea: to try that same key someplace else.
I followed your idea and tried to connect from mikrotik to my macOS using that key
As you foreseen, I also got that very same same error back.
I will send this to the support team, and hopefully it will be actionable enough that they will be able to reproduce and troubleshoot.
Thank you very much
To be fair, I did call out that I successfully used that key on the mac without issue, on my response to pe1chl, just before the post you referenced regarding key generation… but it might have been unclear or easily overlooked; no worries.
Sorry I haven’t written earlier, but I managed to create a support ticket yesterday as per your recommendation:
Reference: SUP-15797
Currently pending support
Support was quick to reply, and asked a few steps, including to add debugging in log output:
/system logging add topics=ssh
I had deleted the keys so I re-imported them (both via console and the winbox), but couldn’t reproduce the issue.
Still puzzled why I repeatedly got this error message yesterday, and today all is working as intended - with the same keys and setup.
And yesterday I did the import several times, but still it yielded that error.
Thumbs up for prompt support both of Mikrotik and community, thanks
Same trouble here.
Keys worked on my 4011 => RBD52G’s at 6.47.9, but i received error:0D078079:lib(13):func(120):reason(121) after upgrading all of them to 6.47.10.
Keys are fine 100%.