system ssh

The script in new terminal was working

but in /system script don’t working

system ssh 1.1.1.1 user=1 port=22 “/ppp secret set [find name=as] remote-address=1.1.1.1”

version : 7.1.1

for ssh connections via script, you need to use this command:

:system ssh-exec user=remote address= command=“{}”

thanx it’s working , but how can i use the password for remote user ?

For example:
/system ssh-exec address=IP user=1 p=22 “/system reboot;”;
You must use certificates.
the password for the remote user cannot be used