Update password.go

Loop is equivalent.
Merge pull request #161 from desimone/patch-2

helper/ssh: equivalent loop