I have an environment when I lauch three virtual machines, then mount them via sshfs. I want to write a bash script to launch all three machines and mount them automatically.
My original plan was to use ping
to identify when the servers were up, but they resolve via ping almost instantly. SSH login is only available later.
The vast majority of the script is functioning, the only part I'm missing is a section to test if I can SSH into the machine yet or not.
Status message: Waiting for server to finish startup...
Until SSH is available.