Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all 3870 articles
Browse latest View live

Rebex File server sftp throughput

$
0
0

Hi, currently we're using Rebex File Server to setup our own SFTP server. Can I ask what is the max throughput for file to upload to the SFTP server that Rebex has tested before? Because using only 1 client, the upload speed is only around 10-30 Mbytes. Is there any setting that I can change in the File server to increase the throughput? We look around in the fileServer and the one we found is only useLargeBuffer. We're using FileZilla and WinScp for sftp client. It might also be due to FileZilla or WinScp configuration. Thanks in advance!


The from address is missing in eml file

$
0
0

When I convert msg file to eml file using MailConverter, the from address is missing in eml file. How can I fix it? Is there any settings in MailConverter.exe.config file?

How to scp with sudo?

$
0
0

Hi,

I am trying to download a file on a server. I need to login with one set of credentials and then change to another set to access the file I need.

Apparently, this is not supported by SFTP, so I am using SCP instead.

I am creating a SSH session, logging in, executing my 'sudo su USER' command and executing a whoami to confirm the login change. Then I am binding the ssh session to a SCP object and attempting the file transfer. At that point I get a permission error.

var ssh = new Ssh();
ssh.Connect (hostname);
ssh.Login (username, password);
var scripting = ssh.StartScripting("sudo su USER");
scripting.DetectPrompt();
var response = scripting.ReadUntilPrompt();
scripting.SendCommand("whoami");
var response = scripting.ReadUntilPrompt();
Console.WriteLine(response);

// -- All good up to this point --

var scp = new Scp();
scp.Bind(ssh.Session);
scp.GetFile(remotePath, localPath); // Permission failure.

I have played with this for awhile and tried a number of different combinations of the above with the same results. Any ideas what I am doing wrong? Note that I am able to do basically the same thing using WinSCP, so it is not a server configuration / password issue.

Any help would be greatly appreciated. Thanks,

Toby

Answered: The from address is missing in eml file

$
0
0

This can be caused when the original MSG doesn't contain SMTP type address but Exchange type address (Active directory address format).

If you send the MSG file to support@rebex.net we can analyze it and tell you more.

FTP upload error

$
0
0

Hello, I've a couple of Android apps that worked well for years.
One of these apps has been recently restyled, and recompiled under VS2017. My big problem is that I can regularly download files from our external FTP server (Cerberus, no SSL), but I cannot anymore upload anything. There was no change in the FTP code, so I cannot wonder what it could be.
I've tested it on three different devices (Samsung SM-T550, V4.4.2, Asus Nexus 7 with 6.0.1 and a brand new Samsung Tab A6 with V7.0); if I install a simple app, like AndFTP, all the operations (download/upload) are carried out without errors.
I cannot paste an excerpt of the upload process taken from the Android Monitor, it exceedes the caracter's limit; the file I'm trying to upload is about 2MB in size.

Any suggestion is obviously welcome; if you need furter details please let me know.
Thanks.
Rodolfo.

Explicit FTPS and Proxy supported?

$
0
0

Hi, I need to connect to an Explicit FTPS Server using a Proxy which is type "FtpDoubleLogin".

By using the VB2010 simple code named "FtpWinFormClientClassic_VB", I get the following message: "This proxy type is not allowed when using SSL.".

Is that true? Doesn't the component supports SSL via a FtpDoubleLogin proxy? If so, is there any particular reason why it's not supported? I believe that technically it should be possible.

Thanks and congratulations for such a great product!
Regards,
German

Answered: FTP upload error

$
0
0

This is very strange - in FTP (at the low level), uploads, downloads and directory listings are almost identical; only the direction of the data transfer differs. Has anything changed at the server? This look like a server-side issue, although it's too early to tell.

In any case, could you please create a communication log using Ftp object's LogWriter property showing a successful download and a failed upload? This should make it possible to tell what is actually going on. Either post the log here or mail it to support@rebex.net for analysis.

Is it possible to use SFTP Bulk Transfer to upload files from memory/ temporary files to avoid excessive file locks?

$
0
0

I have been using SFTP bulk transfer to upload files to our server from remote locations.

Some of these files take some time to upload from locations with poor internet connection and this is causing some problems with other software that requires write access to the same files.

I don't fancy copying entire folders to temporary locations and I could rewrite and just use individual file transfers from memory myself but I was hoping you may have a more elegant solution so that I can keep using bulk transfer but not lock the files while uploading?

Thanks


Nuget package for Rebex SFTP

$
0
0

Hi,

We have purchased your SFTP libraries few years back and planning to update it to Nuget packages now. Do you have any matching Nuget packages in Nuget.org?

Thanks
Chamila

Answered: Is it possible to use SFTP Bulk Transfer to upload files from memory/ temporary files to avoid excessive file locks?

$
0
0

Unfortunately, this is not possible with current version.

However, it can be done very easy using Virtual File System, which we already have implemented, but not for SFTP component. It seems to be easy to add support for this into SFTP as well. So, I will add VFS functionality into SFTP and I will send you link to beta version and sample code ASAP.

How can I determine the host address used by an SFTP client

$
0
0

I am using a trial version of Rebex File Server. When a client connects to the server, I would like to get the host address that they used (e.g. "xyz.company.com"). I tried to do this in the FileServer.Authentication event like this:

var endpoint = args.ClientEndPoint as DnsEndPoint;

However, I am getting null results even though the client is connecting using a host address and not an IP address.

Am I doing something wrong? Thanks.

ArgumentException: Argument passed in is not serializable.

$
0
0

Hello guys !

I'm trying to use Rebex for FTP/SSL secure connection.

Right now, i just have a little ftp server.

If i used this following code , it works perfectly :

var ftp = new Rebex.Net.Ftp(); 
ftp.Connect("192.168.1.133", 2221);         
ftp.Login("anonymous", "");

But i need to secure this. That's why i tried to use the SslMode.Explicit
Then i used this :

var ftp = new Rebex.Net.Ftp(); 
ftp.Connect("192.168.1.133", 2221, SslMode.Explicit);         
ftp.Login("anonymous", "");

And i don't uderstand why i have this error :

Unhandled Exception:

System.ArgumentException: Argument passed in is not serializable.
Parameter name: value

I found nothing anywhere, that's why i'm a little bit confused.

What i'm doing wrong ?

*Sorry for my very bad english, i'm don't speak english very well :3

Thanks for reading me !

Answered: How can I determine the host address used by an SFTP client

$
0
0

DnsEndPoint is just a .NET class that makes it possible to pass hostname/port endpoints to APIs that accept EndPoint on input. It doesn't actually reflect how things work at the TCP protocol level.

A TCP connection is identified by a 5-tuple - a tuple with five elements:
- Protocol (TCP)
- Source IP address
- Source port
- Target IP address
- Target port

In order to establish a TCP connection, the target DnsEndPoint is resolved into an IP address. The host name is not transmitted to the target at all.

This can be observed with .NET's System.Net.Sockets.Socket class as well:

var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
socket.Connect(new DnsEndPoint("test.rebex.net", 22));
Console.WriteLine(socket.RemoteEndPoint);
socket.Close();

The socket.RemoteEndPoint returns an instance of IPEndPoint even though the socket has been connected with DnsEndPoint.

However, you can resolve an IP address into a hostname using DNS:

var ep = (IPEndPoint)args.ClientEndPoint;
IPHostEntry entry = Dns.GetHostEntry(ep.Address);
string hostName = (entry != null) ? entry.HostName : null;

But please note that:

  • This actually involves querying the Domain Name System and might cause a noticeable delay.
  • An IP address might not resolve into any hostname at all.

Can support position,length parameters in the GetDownloadStream/GetUploadStream in the Sftp Client?

$
0
0

Rebex FTP client support location, length parameters in GetDownloadStream / GetUploadStream functions.
This is very useful for me.
Can SFTP clients support these parameters in GetDownloadStream / GetUploadStream?
Or please tell me what alternatives are available.

My ftp upload/download Codes are:

var stream = client.GetDownloadStream(path, position, length);
while(stream != null)
{
int len = stream.Read(buffer, 0, 8192);
if(len == 0)
break;
WriteToMyCustomCacheFile(buffer, len);
}
stream.Close();

var stream = client.GetUploadStream(path, position, length);
while(stream != null)
{
int len = ReadFromMyCustomFile(buffer, 8192);
if(len == 0)
break;
stream.Write(buffer, 0, len);
}
stream.Close();

PS : I can not found Rebex.IO.PIPE (Trial version).

Please support function GetInfo int the ftp like sftp.

$
0
0

We would appreciate if you use the FTP Client to support functions such as GetInfo in SFTP.

FtpItem item = ftp.GetInfo (filename);

I did manually parsing and getting information using "MLST ".
Expose MLST or MLSD related parsing functions.

Thank you.


Smtp.Send fails when sending e-mail to undisclosed recipients. How to make it work?

$
0
0

When using Smtp.Send method to send the e-mail below, a "One or more recipients rejected. Call SmtpException.GetRejectedRecipients() to get a collection of rejected email addresses" exception occurs. Why? And is there any way to make this work?

From: me@rebex.net
To: Undisclosed recipients:;
Bcc: support@rebex.net;sales@rebex.net
Subject: Sample subject
Content-Type: text/plain

Sample body

Communication log:

2017-04-06 12:42:03.852 INFO Smtp(1)[1] Command: MAIL FROM:<me@rebex.net> SIZE=173
2017-04-06 12:42:03.856 INFO Smtp(1)[1] Response: 250 2.1.0 me@rebex.net....Sender OK
2017-04-06 12:42:03.857 INFO Smtp(1)[1] Command: RCPT TO:<Undisclosed recipients:;> NOTIFY=FAILURE
2017-04-06 12:42:03.859 INFO Smtp(1)[1] Command: RCPT TO:<support@rebex.net> NOTIFY=FAILURE
2017-04-06 12:42:03.860 INFO Smtp(1)[1] Command: RCPT TO:<sales@rebex.net> NOTIFY=FAILURE
2017-04-06 12:42:03.860 INFO Smtp(1)[1] Response: 501 5.5.4 Invalid Address
2017-04-06 12:42:03.863 INFO Smtp(1)[1] Response: 250 2.1.5 support@rebex.net
2017-04-06 12:42:03.866 INFO Smtp(1)[1] Response: 250 2.1.5 sales@rebex.net
2017-04-06 12:42:03.866 INFO Smtp(1)[1] Command: RSET
2017-04-06 12:42:03.869 INFO Smtp(1)[1] Response: 250 2.0.0 Resetting
2017-04-06 12:42:03.873 ERROR Smtp(1)[1] Info: Rebex.Net.SmtpException: One or more recipients rejected. Call SmtpException.GetRejectedRecipients() to get a collection of rejected email addresses.

Private Key from PFX File

$
0
0

Hi,

I'm having an issue while extracting RSA Private Key from a PFX File (3rd line in my code). Currently, I'm running Windows CE 7.0 with .NET Compact Framework 3.5 and a registered version of File Transfer Pack 2016 R2.2. Last line from code is a function I have developed and it works fine. However, I want to keep the PFX file in Certificate Store, so thats the reason I need GetRSAParameters to be working on Rebex Certificate class.

byte[] pfxb = Utilities.ReadAllBytes(@"\SD Card\oi1.pfx");

Certificate pfxCert = Certificate.LoadPfx(pfxb, "rafael", KeySetOptions.PersistKeySet);

RSAParameters privateKey = pfxCert.GetRSAParameters(true, false); // error

//RSAParameters privateKey1 = PFXUtil.GetPrivateKeyFromPFXFile(pfxb, "rafael"); // my functions works fine

Error:

    {Rebex.Security.Certificates.CertificateException: Unable to acquire private key handle for this certificate (80090016).
   at Rebex.Security.Certificates.Certificate.UN(Boolean JK, IntPtr& KK, Int32& YK, Int32& WK)
   at Rebex.Security.Certificates.Certificate.XN(RSAParameters& JK, DSAParameters& KK, Boolean YK)
   at Rebex.Security.Certificates.Certificate.NN(RSAParameters& JK, DSAParameters& KK, Boolean YK)
   at Rebex.Security.Certificates.Certificate.HN(RSAParameters& JK, DSAParameters& KK, Boolean YK)
   at Rebex.Security.Certificates.Certificate.GetRSAParameters(Boolean exportPrivateKeys, Boolean silent)
   at CertificateX509Test.Form1.btnGetCertificates_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)
   at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
   at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
   at System.Windows.Forms.Application.Run(Form fm)
   at CertificateX509Test.Program.Main()
}

Any ideas why I cannot extract private key?

Thanks.

Answered: Can support position,length parameters in the GetDownloadStream/GetUploadStream in the Sftp Client?

$
0
0

The additional parameters are not necessary in SFTP.

Unlike FTP, the stream returned by SFTP is fully seekable. So, instead:

var stream = client.GetDownloadStream(path, position, offset);

you can do this:

var stream = client.GetDownloadStream(path);
stream.Seek(offset, position);

Answered: Please support function GetInfo int the ftp like sftp.

$
0
0

The GetInfo method is not directly supported in FTP, because "MLST" is not supported by all servers. In that case, we apply a workaround, but it doesn't work for all servers as well.

However, you can issue the GetInfo method in FTP like this:

var iftp = (IFtp)ftp;
var item = iftp.GetInfo("readme.txt", true);
Console.WriteLine("{0} [{1} B] ({2})", item.Name, item.Length, item.LastWriteTime);

What is the heritage of Roulette?

$
0
0
The precise location and origin of the activity of roulette is a little bit ambiguous, but we do know who 1st developed the to start with roulette wheel. In an attempt to learn a wheel of perpetual motion, Blaise Pascal, a French mathematician and scientist, established the first roulette wheel in the mid 1600’s.

online ms wordThe ball and rules were introduced in the 1720’s, and by 1796 the video game was played really similar to the match of nowadays. The activity of Roulette definitely began to improve in recognition in 1843 when two Germans introduced a wheel that only experienced a single . The initial wheels experienced each a and 00. When phrase commenced to distribute that this one wheel reduced the house advantage by practically 50 %, recognition for the game started to soar.

During the nineteenth century the level of popularity of roulette commenced to unfold around the environment. Curiously sufficient the sport that distribute to The us was the double zero activity not the much more common solitary match. Even nowadays the solitary wheel is known as the European fashion wheel, and the wheel that consists of the two the solitary and double 00 are identified as the American wheel.

Just one of the most notable stories in gambling history revolves all around roulette.

In 1913, at a on line casino in Monte Carlo, black arrived up fifteen occasions in a row on the roulette wheel. Persons commenced storming the tables to location their cash on pink. They ended up beneath the perception that purple had to come up because black had come up 15 periods in a row.

This is recognised as the Gambler’s Fallacy. Reality is, the odds of purple coming up were being nevertheless the exact same. As black arrived up 20 occasions in a row, folks were being doubling and tripling their income insisting that pink was thanks to strike. This lasted an unbelievable 26 moments in a row exactly where black arrived up above and over once again, and people today dropped hundreds of thousands of pounds in an try to cash-in best free games on steam a guaranteed issue.

Roulette is a gambling match appreciated by tens of millions of people today close to the planet. A great deal of its level of popularity arrives from its simplicity and the simple fact that any person can participate in with no substantially preceding expertise. Select a range and hope that the ball lands on it and you will win. Does not get any simpler than that!

Did You Know?
Several people today believe that Pascal built a offer with the Devil in his advancement of the roulette wheel. Incorporate up all the figures and see what you get. I’ll give you a hint, the to start with amount is six and the very last number is six.
Viewing all 3870 articles
Browse latest View live