remote.it Community Forum

Automation of commandline tools

I just started usinmg remote.it and so far I’m really liking it. However, I would really like to be able to write some srcipts to be able to automate the process to insure consistent setups across multiple devices.

Specifically, I’d like to be able to redirect or pass input to:

remoteit add

to add services
I’ve tried (from an elevated shell)

remoteit add ssh 22 ssh

echo “ssh\n22\nssh\n” | remoteit add

named pipes:
mkfifo in
printf "%b " ‘ssh\n22\nssh1\n’ >in &
sudo sh -c ‘remoteit add <in’

and a bunch of of other variations. Is there anyway to do what I’d like?

Thanks,

Doug

Hi Doug,

You may wish to explore “auto” or “bulk” registration methods. These are only available using the connectd package at present.

See:
https://docs.remote.it/mass-production/auto-registration-beta
https://app.gitbook.com/@remote-it/s/docs/mass-production/bulk-registration

Take a look at this script, it does something similar: