EDIT: first problem was solved I changed the name of the title to match the problem i now have instead of making a entire new thread. I will keep the original issue in case somebody might have a similar issue
My issue now is i cant get ssh-exec's output set as a variable.
Hello I am trying to set up a SSH key on my mikrotik to login to my linux server to run commands and am completely stumped.
I created a key in my linux server with
"ssh-keygen -t rsa -m PEM"
saved to default location
saved the public key as the "/root/.ssh/authorized_keys files
and imported the set of keys as a private key in my mikrotik.
But when I SSH into linux machine it still asks for a password.
when i turn off password authentication in the ssh server mikrotik just fails to connect it seems.
what am I doing wrong? all the wikis seem to only talk about connecting to a mikrotik through a remote machine. not the other way around.