code: public synchronized void cancelAllRemoteForwarding(boolean killActiveTunnels)
  			throws SshException {
  
  		if (remoteforwardings == null) {
  			return;
  		}
  
  		for (Enumeration<String> e = remoteforwardings.keys(); e
  				.hasMoreElements();) {
  			String host = (String) e.nextElement();
  
  			if (host == null)
  				return;
  
  			try {
  				int idx = host.indexOf(':');
  				int port = -1;
  				if (idx == -1) {
  					port = Integer.parseInt(host);
  					host = "";
  				} else {
  					port = Integer.parseInt(host.substring(idx + 1));
  					host = host.substring(0, idx);
  				}
  				cancelRemoteForwarding(host, port, killActiveTunnels);
  			} catch (NumberFormatException nfe) {
  
  			}
  		}
  	}
docs: Stop all remote forwarding.
  
  @param killActiveTunnels
  Should any active tunnels be closed.
  @throws SshException