Exemplo n.º 1
0
  public void autoConnect(SshTerminalPanel sshTP) {

    String host = getParameter("sshterm.autoconnect.host");
    String port = getParameter("sshterm.autoconnect.port");
    String username = getParameter("sshterm.autoconnect.username");

    if (host == null || port == null || username == null) {
      return;
    } else {
      SshToolsConnectionProfile p = new SshToolsConnectionProfile();

      p.setHost(host);
      p.setPort(Integer.valueOf(port));
      p.setUsername(username);

      sshTP.connect(p, true);
    }
  }