Page 1 of 1

Sending of commands through ssh with MT

Posted: Sun Jan 17, 2010 8:56 am
by olmi
How to put in order a command through ssh from one MT on another?
Here so does not work (to the user it is authorised to come without the password)

/system ssh 192.168.100.126 user=test
:delay 2
:log error TESTERROR
/quit


Thanks.

Re: Sending of commands through ssh with MT

Posted: Mon Jan 18, 2010 12:58 pm
by SurferTim
ssh 192.168.100.126 -l test ":log error TESTERROR"
or
ssh test@192.168.100.126 ":log error TESTERROR"

I have found it only works from shell on remote computer. ssh in the MT routers will not work with this.

Re: Sending of commands through ssh with MT

Posted: Mon Jan 18, 2010 9:12 pm
by olmi
[admin@VPN] > system ssh test@192.168.100.126 ":log error TESTERROR"
expected end of command (line 1 column 33)

Re: Sending of commands through ssh with MT

Posted: Mon Jan 18, 2010 10:08 pm
by fewi
As he indicated you cannot execute remote commands from the router shell. Its SSH client doesn't support it.