:system ssh-exec user=remote address=<IP> command="{<cmds>}"
why i can't use password ?
Is it reasonable to leave the device without a password just because I need this feature ?
yes that's what i meanI think he was talking about not put a password on the remote router, and then use the script without password.
Not recommended.
Can you give me an example for ssh key and how to work ?@jotne: I think OP talks about no password parameter in the ssh-exec command.
@muhanadali: It is not possible to hardcode the password into your script and I would strongly advice against leaving your router without password. If you want to use ssh-exec with some script (i.e. you can't interactively type in the password) then you need to set SSH keys: SSH private key in source router (which is creating the ssh connection) and SSH public key in destination router (which is receiving the ssh connection). You can create the SSH key pair in puttygen or openssl or any other SSH key-pair generator.