string ftpHost = "xxxxxxxxxx.com";
string ftpUser = "xxxxxxxxxxxxxx";
string ftpPassword = "xxxxxxxxxxxx";
Rebex.Net.Ftp client = new Rebex.Net.Ftp();
Rebex.Licensing.Key="Trial key here";
client.Connect(ftpHost);
client.Login(ftpUser, ftpPassword);
var c = client.IsConnected;
System.Diagnostics.Debug.WriteLine(c); // it returns true:
client.PutFile(photo.AlbumPath, @"/home/esggrouponline/public_html/uploads/linesimg/");