public void setKnownhosts(String knownhosts) { this.knownhosts = knownhosts; super.setKnownhosts(knownhosts); }
/** * Sets the path to the file that has the identities of all known hosts. This is used by SSH * protocol to validate the identity of the host. The default is * <i>${user.home}/.ssh/known_hosts</i>. * * @param knownHosts * a path to the known hosts file. */ public void setKnownhosts(String knownHosts) { exec.setKnownhosts(knownHosts); scp.setKnownhosts(knownHosts); }