Hello guys,
I am working in some home´s automation to request or push configuration changes into another device (TomatoUSB).
I am trying to execute as an example: "/system ssh 192.168.1.3 command=“ifconfig” " but i am not able to automate this kind of queries because it request password to execute the command, and then, try ssh keys import is not working, why? (as far as i dig) because Tomato usb does not have openssl to export the certificate, just has dropbearkey and can not generate the certificate with passphrase, something that is needed from Mikrotik to work (Open-ssl can be installed using Entware, but Entware requiere an USB port for installation, and this router unfortunately does not have it.)
In TomatoUSB
root@e900:/tmp/home/root# dropbearkey -s 1024 -t rsa -f /etc/dropbear/dropbear_rsa_key
Generating key, this may take a while…
Public key portion is:
ssh-rsa ************************************************************ root@unknown
Fingerprint: sha1!! ******************************************
In ROS
[root@RB] > user ssh-keys private import private-key-file=dropbear_rsa_key public-key-file=dropbear_rsa_key.pub user=root
passphrase: ***********
unable to load key file (incorrect passphrase?) ! .
Do you happen to know if there is any workaround?
Thanks in advanced,
Alex