
the config's password is changed when you change the sanitisedCfg's password.
so stream.Handshake always take a wrong password.
sanitisedCfg := config
sanitisedCfg.Parameters["password"] = "********"
logrus.Debugf("Starting handshake with %#v", config)
err = stream.Handshake(config)