Morning all,
My goal is to make two routers talk to each other in a script with ssh-exec.
I created a user and keys according to this Wiki article.
But when trying to fire a command from a remote router (with the exact same user and key config), I always receive an authentication error while the debug log of the router that is supposed to be accessed logs 6 login retries.
From the other router I send
/sys ssh-exec user=remote address=10.80.1.6 command="log info test"
The first attemt is being logged with
auth req: remote ssh-connection none
next auth methods: publickey password
The next five are logged as password auth.
ssh settings of the router trying to log into:
/ip ssh pr
forwarding-enabled: remote
always-allow-password-login: no
strong-crypto: no
allow-none-crypto: yes
host-key-size: 2048
And of the router trying to connect from:
/ip ssh pr
forwarding-enabled: remote
always-allow-password-login: no
strong-crypto: no
allow-none-crypto: yes
host-key-size: 2048
Connecting from a cygwin terminal to the router in question works without issue with this command:
ssh -i ./remote-key remote@10.80.1.6
Any ideas?
Thanks!
-Chris