FTP: Exemple d’authentification des clients FTP

Author:

serveur,ftp, Connexion, authentification, java, apache, connexion, ftp
{filelink=9022}


import org.apache.commons.net.ftp.FTPClient;
import java.io.IOException;

public class FTPLogin
 {
 	/**
 	 * Comment se logger à un serveur FTP
 	 **/

  public static void main(String[] args) throws Exception
  	{
    FTPClient client_ftp = new FTPClient();

    client_ftp.connect("ftp.exemple.com");

    // Tenter une connexion avec le nom et le mot de passe
    boolean login = client_ftp.login("admin", "******");

    // Vérifier si la connexion a marchée
    if (login)
    {
      System.out.println("Vous êtes connecté");
    }
    	else
    {
      System.out.println("La Connexion a échouée");
    }
    client_ftp.disconnect();
  }
}

A Voir sur le même Sujet:

  • réseau
  • cours de java programmation réseau et system
  • telecharger client ftps double authentification
  • utilisation ftp java connexion au site
  • comment authentifier ftp string login @
  • ftp: exemple d’authentification des clients ftp
  • java ftps client import cer
  • programmation reseau en java smtp
  • scanner reseau en java
  • programmation reseau interface graphique en java+code source

Leave a Reply

Your email address will not be published. Required fields are marked *