Fix for issue #1284.

Fix for issue #1284.
@yugangw-msft I guess this check confused you "if (!options.sshPassword && !options.sshCert)" I have explained the details in a note line 55. Just putting below for your convenience.:

Note: The optional argument --no-ssh-password maps to options.sshPassword.
if --no-ssh-password is specified in the command line then options.sshPassword 
will be set to 'false' by commander. If --no-ssh-password is not specified as 
an option then options.sshPassword will be set to true by commander.