Hi,
To make automatic SSH login, then you need to setup key based authentication. It is a simple process.
Coming to the script requirement, the child interfaces is your virtual NIC's ?
I have a script already developed, but it needs to be modified to meet your requirements.
You can refer my profile and if interested please ping me.
THank You.