Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20814 |

    Hello,

    I am trying to SFTP using Xceed ftp component. The ftp server is Globalscape Secure FTP Server. But my application hangs after connecting to the server. It keeps initializing secure connection. This is the code am using:

    objFtpClient.CommandSent+=

    new CommandSentEventHandler(objFtpClient_CommandSent);
    objFtpClient.ReplyReceived+=

    new ReplyReceivedEventHandler(objFtpClient_ReplyReceived);
    objFtpClient.CertificateReceived+=

    new CertificateReceivedEventHandler(objFtpClient_CertificateReceived);
    objFtpClient.FileTransferStatus+=

    new FileTransferStatusEventHandler(objFtpClient_FileTransferStatus);
    objFtpClient.SendingFile+=

    new TransferringFileEventHandler(objFtpClient_SendingFile);

    string m_hostAddress = textBox1.Text;

    int m_hostPort = int.Parse(textBox2.Text);

    string userId = “test”;

    string password = “password”;

    try
    {

    IAsyncResult result = objFtpClient.BeginConnect(

    m_hostAddress,

    m_hostPort,

    null,

    null );

    while( !result.IsCompleted )
    Application.DoEvents();

    objFtpClient.EndConnect( result );

    //authenticate
    result = objFtpClient.BeginAuthenticate(

    AuthenticationMethod.Ssl,

    VerificationFlags.None,

    null,

    DataChannelProtection.Confidential,

    null,

    null );

    while( !result.IsCompleted )

    {

    Application.DoEvents();

    }

    objFtpClient.EndAuthenticate( result );

    //login
    objFtpClient.Login(userId, password);

    }

    catch(Exception ex)
    {

    if(objFtpClient != null)
    {

    if(objFtpClient.Connected)
    {

    IAsyncResult result = objFtpClient.BeginDisconnect(

    null, null );

    while( !result.IsCompleted )
    {

    Application.DoEvents();

    }

    objFtpClient.EndDisconnect( result );

    }

    }

    MessageBox.Show(ex.Message);

    }

    Any thoughts as to why its happening?

    Thanks and regards
    Nitin

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by nitinjain26 (had 5296 views)

    User (Old forums)
    Member
    Post count: 23064

    You are referring to SFTP, which is SSH, which is a protocol not supported by our component. It supports only SSL/TLS secure protocol.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 343 views)

    User (Old forums)
    Member
    Post count: 23064

    Will this be added in the future?

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by William (had 570 views)

    Odi [Xceed]
    Spectator
    Post count: 426

    We’re strongly considering it. However, at the moment, since it is a considerable chunk of work, and it hasn’t been started yet, it is still quite a long way off before becoming available.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Odi [Xceed] (had 324 views)

    User (Old forums)
    Member
    Post count: 23064

    It is imperative that FTP over SSH be implemented. This is the canoncial deployment of UNIX sftp daemons. Is this feature part of the product roadmap?

    -Bishr

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Bishr (had 352 views)

    Odi [Xceed]
    Spectator
    Post count: 426

    The roadmap doesn’t include it, no. It is a feature we’re considering but due to the complexity, we have favored other projects. Send me an email to <a href=”mailto:KosmatosO@xceedsoft.com”>KosmatosO@xceedsoft.com</a> and we can discuss this further.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Odi [Xceed] (had 5733 views)

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.