I have setup DSA key login found her:
https://wiki.mikrotik.com/wiki/Use_SSH_to_execute_commands_(DSA_key_login)
This works fine with my admin-ssh (read only) user.
I can get lots of information out from MiktoTik this way.
But now I have bumped inn to a problem.
I found a script to get DHCP pool information from the Mikrotik here:
http://forum.mikrotik.com/t/ip-pool-statistics/36541/1
This I have changed some to get output like this:
pool=DHCP-Pool-LAN used=122 total=185 percent=65
pool=VPN_pool used=0 total=19 percent=0
But when I do run it from the remote server I get this:
ssh -l admin-ssh -i /var/bin/dsa_mikrotik_private 192.168.10.1 "/system scriptPool-information"
not enough permissions to run script DHCP-Pool-information
After searching some, I found that admin-ssh user need full access to run the scrip.
This works then fine, but I do not like the use to have full access.
Is there another way to make this work without giving user full access?