K
K
Kir aka Dober2017-11-14 18:31:09
linux
Kir aka Dober, 2017-11-14 18:31:09

Executing a shell command when connecting to dropbear. How?

Given : loaded BusyBox v1.27.2 (Debian 1:1.27.2-1) + Dropbear v2017.75, key authorization configured.
Task: connects to it not interactively (everything is fine with this), but from a script, executing a command on a remote server.
With sshd, everything would be simple: ssh ip_remote command && exit. But with dropbear, I don’t have such a trick, unfortunately. Do you need a different syntax or is dropbear basically unable to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2017-11-14
@dobergroup

With sshd, everything would be simple: ssh ip_remote command && exit.

Well, it would be nice to quote the command, at least if you wanted to execute exit on a remote machine: ssh ip_remote "command && exit" . Although it is not clear why exit is there.
What are the symptoms?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question