detect if ports needed for SSH and DOCKER are free on localhost