private void WriteRemoteConf() throws RemoteException{
        if(null == localConfPath || "" == localConfPath){
        	throw new RemoteException("local localConfPath is not correct.please set SetConfpathWithName()");
        }
        
		try {
			if(!CanCommitFile()){
	        	throw new RemoteException("the remote Nginx.conf has modified before.Please check remote Nginx.conf timestamp");
			}
			SCPClient scpc=conn.createSCPClient();
			
			String localFile = GetlocalConfFullName();
			String remoteConfDirectory = remoteConf.substring(0,
					remoteConf.lastIndexOf("/"));
			scpc.put(localFile, remoteConfDirectory);
			
			//update local datetimestamp
			oldConfDatestamp = getFileModifyTime();
		} catch (IOException e) {
			throw new RemoteException(e.getMessage());
		}
	}