Global.helma.Ssh.connect (username, password)
connects to a remote host with username/password authentication

  • Parameter String:
    username
  • Parameter String:
    password
  • Returns
    Boolean
Sourcecode in /home/hannes/helma/modules/helma/Ssh.js:
152:   this.connect = function(username, password) {
153:           if (!username || !password) {
154:               error("connect", "Insufficient arguments.");
155:           } else if (connect() && connection.authenticateWithPassword(username, password)) {
156:               debug("connect", "authenticated using password");
157:               return true;
158:           } else {
159:               error("connect", "Authentication failed!");
160:           }
161:          return false;
162:      }