send ssh command using router?

Hello ,
I know I can connect the a device using ssh from the menu:
tools–>telnet–>ssh

when I do it from cli
it ask me for a password , why?
is there a way to make the password in the cli (auto) ?

in the end I would like to send a reboot command to a device connectedto the router using ssh


Thanks ,

Seem to be complicated to do,
http://forum.mikrotik.com/t/how-i-can-send-ssh-command-through-script/121689/1

Maybe you can use a script on the remote router to do a reset without sending one from another location.