How can I send a command to Mikritik via SSH? For example I want to send this command: /ip service disable telnet. U tried ssh email@example.com /ip service disable telnet, but no reaction on the router.
Yes, I read this topic and I also tried this script. But I use Debian and the script only log to Mikrotik, but then its will freeze. No commands are executed. All required modules are downloaded from CPAN. Did you test it on Debian or have you some advice for me?
O.K., now it´s works, there was an error in perl. But now I have another problem. When I run this script on console, it´s OK. But when I want to run it in CRON, the script will freeze. In cron I have "/path/ssh.cmd IP /path/cmd".