change ordering of ssh connection IP for amazon. fixes #1559
Merge pull request #1707 from gergnz/master

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