Run a command in other server over my dial plan (ssh)

Hi! I have a question

How I can run a command in other server over my dial plan.

i try this and dont works

exten => 7018,1,System(/usr/bin/ssh "lavariega@172.17.0.88 init 0 )

I make a public key in mi server. when I run the command in the console the command works.

/usr/bin/ssh "lavariega@172.17.0.88 init 0

but in the dial plan fail.

Oh! I can make it run

I need create the public key logging into my asterisk user in the console!

tanks

Use Asterisk Manager Interface to execute remote Asterisk command and actions

1 Like

Thanks !

I created bash and works!