change ordering of ssh connection IP for amazon. fixes #1559