fixes #12801

get ssh_interface if it is set, otherwise just use public_ips
Merge pull request #12868 from gtmanfred/private_ips

fixes #12801