Global.helma.Ssh.addKnownHosts (file)
reads a known hosts file

  • Parameter Object:
    String or instance of helma.File or java.io.File
Sourcecode in /home/hannes/helma/modules/helma/Ssh.js:
135:   this.addKnownHosts = function(file) {
136:           try {
137:               knownHosts.addHostkeys(getFile(file));
138:               verifier = new SSHPKG.ServerHostKeyVerifier(SimpleVerifier);
139:               return true;
140:           } catch (e) {
141:               error("addKnownHosts", "Missing or invalid known hosts file '" + file + "'");
142:           }
143:           return false;
144:      }