Community discussions

MikroTik App
 
muhanadali
newbie
Topic Author
Posts: 49
Joined: Tue Aug 25, 2020 12:24 pm

system ssh

Tue Jan 04, 2022 1:05 am

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
 
JoshDi
newbie
Posts: 37
Joined: Fri May 21, 2021 4:49 pm

Re: system ssh  [SOLVED]

Tue Jan 04, 2022 4:24 am

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

:system ssh-exec user=remote address=<IP> command="{<cmds>}"
 
muhanadali
newbie
Topic Author
Posts: 49
Joined: Tue Aug 25, 2020 12:24 pm

Re: system ssh

Tue Jan 04, 2022 1:32 pm

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

:system ssh-exec user=remote address=<IP> command="{<cmds>}"
thanx it's working , but how can i use the password for remote user ?
 
max232
just joined
Posts: 7
Joined: Fri Apr 24, 2020 11:17 pm

Re: system ssh

Sat Jan 15, 2022 2:03 pm

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

:system ssh-exec user=remote address=<IP> command="{<cmds>}"
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

Who is online

Users browsing this forum: stanisljevic and 14 guests