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

SCP not working, how to see whats going on...

$
0
0

Hi,

I try to download a file to a Cisco router using SCP, but it just end up with an exception that tells me that the channel has been closed. I would like to dig a bit deeper, is there a way to do that?

/Emanuel


SFTP .Net - download not working after succesful connection with error 'file not found'

$
0
0

We have a customer SFTP to which we can connect, list files available for downlaod, but when we wan't to download these files, there is a 'file not found error'

The files are in a subdirectory but if i look in the detailed log it seems that the component is searching for the files in the root-directory. could this be a component error?

2023-03-27 09:56:22.914 Opening log file.
2023-03-27 09:56:22.914 INFO FileLogWriter(2)[1] Info: Assembly: Rebex.Common R6.10 for .NET 4.6-4.8
2023-03-27 09:56:22.914 INFO FileLogWriter(2)[1] Info: Platform: Windows 6.2.9200 32-bit; CLR: 4.0.30319.42000
2023-03-27 09:56:22.914 DEBUG FileLogWriter(2)[1] Info: Culture: de; Windows-1252
2023-03-27 09:56:22.914 INFO Sftp(3)[1] Info: Connecting to xxx.com:22 using Sftp.
2023-03-27 09:56:22.914 INFO Sftp(3)[1] Info: Assembly: Rebex.Sftp R6.10 for .NET 4.6-4.8
2023-03-27 09:56:22.914 INFO Sftp(3)[1] Info: Platform: Windows 6.2.9200 32-bit; CLR: 4.0.30319.42000
2023-03-27 09:56:22.914 DEBUG Sftp(3)[1] Info: Culture: de; Windows-1252
2023-03-27 09:56:22.915 DEBUG Sftp(3)[1] Proxy: Resolving 'xxx.com'.
2023-03-27 09:56:22.915 DEBUG Sftp(3)[1] Proxy: Connecting to 150.105.112.41:22 (no proxy).
2023-03-27 09:56:22.953 DEBUG Sftp(3)[1] Proxy: Connection established.
2023-03-27 09:56:23.041 DEBUG Sftp(3)[1] SSH: Server is 'SSH-2.0-SSHD-CORE-0.14.0'.
2023-03-27 09:56:23.041 INFO Sftp(3)[1] SSH: Negotiation started.
2023-03-27 09:56:23.069 DEBUG Sftp(3)[1] SSH: Negotiating key.
2023-03-27 09:56:23.132 DEBUG Sftp(3)[1] SSH: Validating 'ssh-rsa' signature.
2023-03-27 09:56:23.132 DEBUG Sftp(3)[1] SSH: Received 2048-bit RSA server key (minimum allowed size is 1023 bits).
2023-03-27 09:56:23.169 INFO Sftp(3)[1] SSH: Negotiation finished.
2023-03-27 09:56:23.169 INFO Sftp(3)[1] Info: Server: SSH-2.0-SSHD-CORE-0.14.0
2023-03-27 09:56:23.169 INFO Sftp(3)[1] Info: Fingerprint (MD5): ed:d7:dd:5f:ea:58:54:81:78:7a:49:2a:93:77:d0:e8
2023-03-27 09:56:23.170 INFO Sftp(3)[1] Info: Fingerprint (SHA-256): XoTeo22FJc6Muz67xniVNdr7hkC7ggGfQKxPY0ZuHXE
2023-03-27 09:56:23.170 INFO Sftp(3)[1] Info: Cipher info: SSH 2.0, ecdh-sha2-nistp256, ssh-rsa, aes256-ctr/aes256-ctr, hmac-sha2-256/hmac-sha2-256
2023-03-27 09:56:23.350 DEBUG Sftp(3)[1] SSH: Allowed authentication methods for 'xxx': password, publickey.
2023-03-27 09:56:23.350 DEBUG Sftp(3)[1] SSH: Trying password authentication for 'xx'.
2023-03-27 09:56:23.463 DEBUG Sftp(3)[1] SSH: Authentication successful.
2023-03-27 09:56:23.463 DEBUG Sftp(3)[1] SSH: Opening channel 'session' (initial window size: 2097152, max packet size: 129024).
2023-03-27 09:56:23.535 DEBUG Sftp(3)[1] SSH: Requesting subsystem 'sftp'.
2023-03-27 09:56:23.600 INFO Sftp(3)[1] Command: SSHFXPINIT (4)
2023-03-27 09:56:23.667 INFO Sftp(3)[1] Response: SSHFXPVERSION (3, 0 extensions)
2023-03-27 09:56:23.667 INFO Sftp(3)[1] Info: Using SFTP v3.
2023-03-27 09:56:23.667 INFO Sftp(3)[1] Command: SSHFXPREALPATH (1, '.')
2023-03-27 09:56:23.721 INFO Sftp(3)[1] Response: SSHFXPNAME (1, '/')
2023-03-27 09:56:23.721 INFO Sftp(3)[1] Info: Home directory is '/'.
2023-03-27 09:56:23.724 INFO Sftp(3)[1] Batch: Calling Download(string = 'xxx230323114633456258814823596.xml', string = 'C:\Users\xxx\Desktop\temp\New folder', TraversalMode = 'Recursive', TransferMethod = 'Copy', ActionOnExistingFiles = 'OverwriteOlder').
2023-03-27 09:56:23.727 DEBUG Sftp(3)[1] Batch: Executing multi-file operation: Downloading, source = 'xxx230323114633456258814823596.xml', target = 'C:\Users\xxx\Desktop\temp\New folder', TransferMethod.Copy, MoveMode.All, LinkProcessingMode.FollowLinks, ActionOnExistingFiles.OverwriteOlder.
2023-03-27 09:56:23.728 DEBUG Sftp(3)[1] Batch: Normalizing target path ('C:\Users\xxx\Desktop\temp\New folder').
2023-03-27 09:56:23.728 DEBUG Sftp(3)[1] Batch: Checking target path ('C:\Users\xxx\Desktop\temp\New folder').
2023-03-27 09:56:23.734 DEBUG Sftp(3)[1] Batch: Normalizing source path ('xxx230323114633456258814823596.xml').
2023-03-27 09:56:23.734 DEBUG Sftp(3)[1] Batch: Checking source path ('/xxx230323114633456258814823596.xml').
2023-03-27 09:56:23.737 INFO Sftp(3)[1] Command: SSHFXPLSTAT (2, '/xxx230323114633456258814823596.xml')
2023-03-27 09:56:23.791 INFO Sftp(3)[1] Response: SSHFXPSTATUS (2, 2, '/xxx230323114633456258814823596.xml/')

Answered: SCP not working, how to see whats going on...

$
0
0

Hi,

A debug log might make it possible to tell what is going on. If LogLevel.Debug does not provide sufficient information, try with LogLevel.Verbose.

SMTP OAuth2 Office 365 still not supported ?

$
0
0

Is the app only authentication for unattended daemon/service apps still not supported by Microsoft 365? Is there any Timeline for this ?

Answered: EwsMessageCollection property MessageId

$
0
0

From EWS protocol's point-of-view, the message's MessageId is just one of the message headers, so if you need to access a message with a particular MessageId, you have to search for it, for example like this:

var searchResult = await _exchange.SearchAsync(EwsFolderId.Inbox, EwsItemFields.Id, EwsSearchParameter.MessageId(messageId));
if (searchResult.Count == 1)
{
    var ewsItemId = searchResult[0].Id;
    EwsMessageInfo ewsMessage = await ewsClient.GetMessageInfoAsync(item.messageId, EwsItemFields.Full);
}
else
{
    // there is no message with the specified MessageId, or there are more than one
    ...
}

As for MessageId being null in GetMessageList result (even when EwsItemFields.Envelope is specified) - this seems to be a bug, and we will fix it for the next release as well. Looks like someone confused this ID with the EWS item ID. Strangely, no one noticed until now.

Getting Disconnected by the server ('Key exchange timed out') Error.

$
0
0

As we are using rebex sftp to upload and download and currently we are started getting a key exchange timed-out error, so can you please help me to identify the root cause for the same. Here I am adding a stack trace.

Rebex.Net.SftpException: Disconnected by the server ('Key exchange timed out').
---> Rebex.Net.SshException: Disconnected by the server ('Key exchange timed out').
at Rebex.Net.SshSession.kzrwr(dinkh p0, Boolean p1)
at Rebex.Net.SshChannel.winmt(Byte[] p0, Int32 p1, Int32 p2)
at Rebex.Net.SshChannel.Send(Byte[] buffer, Int32 offset, Int32 count)
at cmhho.rozsz.ajqlw(dinkh p0, feuge p1)
at cmhho.rozsz.vdbkd(dinkh p0, UInt32 p1, ryzia p2, feuge p3)
at cmhho.rozsz.vqgyk(String p0, Boolean p1, Boolean p2, Boolean p3, Boolean p4, ermem p5, shqnp& p6, feuge p7)
at Rebex.Net.Sftp.aixik(String p0, Boolean p1, Boolean p2, Boolean p3, Boolean p4, feuge p5)
--- End of inner exception stack trace ---
at Rebex.Net.Sftp.aixik(String p0, Boolean p1, Boolean p2, Boolean p3, Boolean p4, feuge p5)
at Rebex.Net.Sftp.ruoge(String p0, feuge p1)
at Rebex.Net.Sftp.hbinw(Object p0, Enum p1, Object[] p2)
at cmhho.ljwiz.uovpb(Object p0)
--- End of stack trace from previous location ---

Error in .NET The client and the server have no common algorithms

$
0
0

Hello

Due to cipher updates done on Windows 2016 server in Bitwise, my rebex .NET code to connect to this server using SFTP is failing, due to below error -
"The client and the server have no common algorithms"

I was told that I might need to update Rebex. Currently I am using Assembly Rebex.Sftp, Version=3.0.4444.0

Can someone please advise, which version do I need to update my rebex to ?
Also do we have any documentation about how to upgrade ? Will it need license purchase ?

I would appreciate any help here.

My code ->
Sftp ftp = null;
ftp = new Sftp();
ftp.Connect(selectedServer);

Where Sftp is Assembly Rebex.Sftp, Version=3.0.4444.0, Culture=neutral, PublicKeyToken=1c4638788972655d

Bi directional TLS proxy

$
0
0

Dear Community,

I configured TLS 1.2 to 1.0 proxy using -in 0.0.9.0:443 with pfx certificate. That is working perfectly.

The server uses TLS 1.0, and that server needs to communicate with Internet server using TLS 1.2.

I think I need to add another tunnel from TLS 1.0 server to Internet server using TLS 1.2

I don’t have pfx certificate for that Internet server TLS 1.2 (It is Duo 2FA server)

If Rebex TLS proxy works for bi-directional that is appreciated.

Would you tell how to add tunnel from TLS 1.0 sever to Internet TLS 1.2 server without adding pfx certificate?

Regards, Mike


Amendig the config file of TinyWebServer - webRootDir

$
0
0

Dear,
thanks for this useful piece of software.

I'm struggling with attempting to change the path to "webRootDir".

NB : i'm on a windows PC
The exe file is here : C:_ARBORPRO\05SoftwarePackagesDatas\WebServerApps\RebexTinyWebServer

Your default initial setting is :

I tried :
value=".../71Config/LTFLocalHost/RebexTinyWebServer/localhost-wwwroot-2023a"
but also (simpler, less error prone) :

I restarted often the server, I tested from a second browser.
Whatever I do, it seems that the value of webRootDir does never change, I'm still with the out-of-the-box path, no other does work.

Where is the error?

Thanks on forward.

Pierre-Yves

Output from virtual terminal

$
0
0

Hello.
I want to add a button to connect VPN and also receive an obtained IP address.
The code is below:

var virtualssh = new Rebex.Net.Ssh();
virtualssh.Connect(IP);
virtualssh.Login(user, password);
var vterminal = new VirtualTerminal(80, 25);
vterminal.Bind(virtualssh);
vterminal.Scripting.Prompt = "$ ";
vterminal.Scripting.SendCommand("sudo openvpn ~/vpn/file.ovpn");

The output is the following

2023-04-08 06:52:22 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.
....
2023-04-08 06:52:24 net_addr_v4_add: 10.10.16.48/23 dev tun2
....
2023-04-08 06:52:24 Initialization Sequence Completed

How to read this output from the virtual terminal? ReadUntilPrompt doesn't fit because the command doesn't return to prompt
Many thanks

Answered: Getting Disconnected by the server ('Key exchange timed out') Error.

$
0
0

This log is occurring while we are checking file exists or not using Sftp.

if (objSftp.IsConnected && objSftp.IsAuthenticated)
{

isExist = await objSftp.FileExistsAsync(destFileName);
}

As at the server side we are getting log-like
Debug SSH: Session 90555: Performing algorithm negotiation and key exchange.

Answered: Error in .NET The client and the server have no common algorithms

$
0
0

Rebex SFTP 3.0.4444 is more than 10 years old, and is unlikely to work with up-to-date servers unless legacy ciphers are enabled at the server side (which is strongly discouraged).

We recommend upgrading to the latest version, which supports modern ciphers and has been tested with contemporary servers. It targets .NET Framework 3.5 and later.

The current version retains most of 3.0.4444's APIs, but check out this release note that describes some changes that might affect you. In any case, if you have any troubles upgrading due to compile warnings, or if the new version does not seem to work, contact us and we will assist you with the migration.

If your support contract expired years ago, you will need to purchase a new license.
(Note: If your application uses .NET Framework 2.0, you will have to purchase the Legacy Edition)

What is the negotiated TLS version for FTP SSL?

$
0
0

Hi.

When using FTP SSL, how can I know which version of TLS was finally negotiated by FTPS?

Best regards.

BooKyung Oh.
OpenBoxLab Inc.

Answered: Bi directional TLS proxy

$
0
0

You can't create a TLS tunnel without a certificate, but you can work around the problem:

1. Create a self-signed certificate for the target server's (= the Internet server using TLS 1.2) domain names:

tlsproxy certgen -s "CN=example.org" -a "example.org,www.example.org" -b 2048 example.pfx

2. Configure the TLS 1.0 server to trust this self-signed certificate. That means either adding 'example.crt' to the Root CA store of the account under which the server runs (if it uses Windows certificate API) or to the server's list of trusted root CAs.

3. Create the TLS 1.0 to TLS 1.2 tunnel.

(Please note that the certgen command creates a certificate signed with RSA/SHA-256 algorithm. If the TLS 1.0 server is very old and does not support RSA/SHA-256 yet, you would have to create a certificate signed with RSA/SHA-1 instead. Unforutnately, the certgen command does not support that. It's an omission and we will add this functionality to the next release. If it turns out you need this feature, let us know and we'll send you a download link when the new version is ready.)

Windows CE and SOAP Webservice connection error

$
0
0

Hello,
we have Windows CE CF3.5 application using SOAP WebService. Server was upgraded to use TLS1.2 and we are trying to upgrade client application as well using Rebex library (now testing with trial) like this


var creator = new HttpRequestCreator();
creator.Settings.SslAllowedVersions = TlsVersion.Any;
creator.Register();

but we are getting error, please see rebex log below

2023-09-07 05:56:27 Opening log file.
2023-09-07 05:56:27 INFO FileLogWriter(1)[188286414] Info: Assembly: Rebex.Common R5.12 for .NET Compact Framework 3.5
2023-09-07 05:56:27 INFO FileLogWriter(1)[188286414] Info: Platform: Windows CE 7.0.2882 32-bit; CLR: 3.5.14223.0
2023-09-07 05:56:27 DEBUG FileLogWriter(1)[188286414] Info: Culture: en; windows-1252
2023-09-07 05:56:40 DEBUG HttpRequest(1)[188286414] HTTP: Using new HTTP session (1) provided by Rebex.Net.HttpRequestCreator(1).
2023-09-07 05:56:40 INFO HttpRequest(1)[188286414] HTTP: Connecting to 'https://147.32.3.5:7104'...
2023-09-07 05:56:40 DEBUG HttpRequest(1)[188286414] Info: Assembly: Rebex.Common R5.12 for .NET Compact Framework 3.5
2023-09-07 05:56:40 DEBUG HttpRequest(1)[188286414] Info: Platform: Windows CE 7.0.2882 32-bit; CLR: 3.5.14223.0
2023-09-07 05:56:40 DEBUG HttpRequest(1)[188286414] Info: Culture: en; windows-1252
2023-09-07 05:56:40 DEBUG HttpRequest(1)[188286414] Proxy: Connecting to 147.32.3.5:7104 (no proxy).
2023-09-07 05:56:40 DEBUG HttpRequest(1)[188286414] Proxy: Connection established.
2023-09-07 05:56:40 DEBUG HttpRequest(1)[188286414] TLS: Enabled cipher suites: 0x0000000000000640.
2023-09-07 05:56:40 DEBUG HttpRequest(1)[188286414] TLS: Applicable cipher suites: 0x0000000000000640.
2023-09-07 05:56:40 DEBUG HttpRequest(1)[188286414] TLS: HandshakeMessage:ClientHello was sent.
2023-09-07 05:56:43 DEBUG HttpRequest(1)[188286414] TLS: TLS socket error, 0 bytes of data were received.
2023-09-07 05:56:43 DEBUG HttpRequest(1)[188286414] TLS: Error while processing TLS packet: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.ReceiveNoCheck(Byte[] buffer, Int32 index, Int32 request, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at onrkn.bavnf.Receive(Byte[] buffer, Int32 offset, Int32 count, SocketFlags socketFlags)
at Rebex.Net.ProxySocket.Receive(Byte[] buffer, Int32 offset, Int32 count, SocketFlags socketFlags)
at onrkn.csnwg.xqszt(Int32 p0)
at onrkn.csnwg.hgsjn()
at onrkn.csnwg.upurk()
at onrkn.csnwg.sksvo()
at Rebex.Net.TlsSocket.Negotiate()
at onrkn.ixwxt.dogje(ISocket p0)
at onrkn.rbbcu.dkczn(String p0, Int32 p1, Boolean p2)
at onrkn.udlmn.nplxx()
at onrkn.udlmn.iqjhb(Boolean p0)
at onrkn.udlmn.kvanb()
at Rebex.Net.HttpRequest.xhopj()
at Rebex.Net.HttpRequest.azxmk()
at Rebex.Net.HttpRequest.uxwxa()
at Rebex.Net.HttpRequest.ajswj()
at Rebex.Net.HttpRequest.GetResponse()
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(String methodName, Object[] parameters, WebClientAsyncResult asyncResult)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at eInventorymobile.wsInventory.TerminalWebService.GetAlive()
at eInventorymobile.clsDBSQL.WSGetAlive()
at eInventorymobile.frmMain.GetUserDepartment(String sUserCode)
at eInventorymobile.frmMain.txtLoginPwd
KeyPress(Object sender, KeyPressEventArgs e)
at System.Windows.Forms.Control.OnKeyPress(KeyPressEventArgs e)
at System.Windows.Forms.Control.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 eInventorymobile.Program.Main()

2023-09-07 05:56:43 INFO HttpRequest(1)[188286414] TLS: Fatal Alert:InternalError was sent.
2023-09-07 05:56:43 ERROR HttpRequest(1)[188286414] HTTP: Error while sending request: Rebex.Net.TlsException: Connection was closed by the remote connection end. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.ReceiveNoCheck(Byte[] buffer, Int32 index, Int32 request, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at onrkn.bavnf.Receive(Byte[] buffer, Int32 offset, Int32 count, SocketFlags socketFlags)
at Rebex.Net.ProxySocket.Receive(Byte[] buffer, Int32 offset, Int32 count, SocketFlags socketFlags)
at onrkn.csnwg.xqszt(Int32 p0)
at onrkn.csnwg.hgsjn()
at onrkn.csnwg.upurk()
at onrkn.csnwg.sksvo()
at Rebex.Net.TlsSocket.Negotiate()
at onrkn.ixwxt.dogje(ISocket p0)
at onrkn.rbbcu.dkczn(String p0, Int32 p1, Boolean p2)
at onrkn.udlmn.nplxx()
at onrkn.udlmn.iqjhb(Boolean p0)
at onrkn.udlmn.kvanb()
at Rebex.Net.HttpRequest.xhopj()
at Rebex.Net.HttpRequest.azxmk()
at Rebex.Net.HttpRequest.uxwxa()
at Rebex.Net.HttpRequest.ajswj()
at Rebex.Net.HttpRequest.GetResponse()
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(String methodName, Object[] parameters, WebClientAsyncResult asyncResult)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at eInventorymobile.wsInventory.TerminalWebService.GetAlive()
at eInventorymobile.clsDBSQL.WSGetAlive()
at eInventorymobile.frmMain.GetUserDepartment(String sUserCode)
at eInventorymobile.frmMain.txtLoginPwd
KeyPress(Object sender, KeyPressEventArgs e)
at System.Windows.Forms.Control.OnKeyPress(KeyPressEventArgs e)
at System.Windows.Forms.Control.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 eInventorymobile.Program.Main()

at onrkn.csnwg.upurk()
at onrkn.csnwg.sksvo()
at Rebex.Net.TlsSocket.Negotiate()
at onrkn.ixwxt.dogje(ISocket p0)
at onrkn.rbbcu.dkczn(String p0, Int32 p1, Boolean p2)
at onrkn.udlmn.nplxx()
at onrkn.udlmn.iqjhb(Boolean p0)
at onrkn.udlmn.kvanb()
at Rebex.Net.HttpRequest.xhopj()
at Rebex.Net.HttpRequest.azxmk()
at Rebex.Net.HttpRequest.uxwxa()
at Rebex.Net.HttpRequest.ajswj()
at Rebex.Net.HttpRequest.GetResponse()
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(String methodName, Object[] parameters, WebClientAsyncResult asyncResult)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at eInventorymobile.wsInventory.TerminalWebService.GetAlive()
at eInventorymobile.clsDBSQL.WSGetAlive()
at eInventorymobile.frmMain.GetUserDepartment(String sUserCode)
at eInventorymobile.frmMain.txtLoginPwd
KeyPress(Object sender, KeyPressEventArgs e)
at System.Windows.Forms.Control.OnKeyPress(KeyPressEventArgs e)
at System.Windows.Forms.Control.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 eInventorymobile.Program.Main()


Auto ban IP after numerous connexion attempts

$
0
0

Hi, I'm a new user of rebex sftp and I would like to know if there is a way to auto ban IP's when there is clearly numerous connexion attempts (with differents logins).
I've seen the allow / deny IP filtering system, but I don't know from which ip me or other users will connect, so it's not really a great solution for me.
Would be nice if there was an auto ban system.
If it exists can you point to me where I can configure it ?
If it don't exists, I suggest you implement it, would be a great added solution.

Have a great day.
Tortillas

Answered: Windows CE and SOAP Webservice connection error

$
0
0

Hello,

1. The content of "Enabled cipher suites" line in the log indicates that you have specified SslAllowedSuites somewhere in your code. Make sure you don't do something like this:

creator.Settings.SslAllowedSuites = TlsCipherSuite.RSA_WITH_3DES_EDE_CBC_SHA |
    TlsCipherSuite.RSA_WITH_AES_128_CBC_SHA |
    TlsCipherSuite.RSA_WITH_AES_256_CBC_SHA;

2. The server at 147.32.3.5 apparently requires that clients use a cipher based on elliptic curve Diffie-Hellman. These are not supported out-of-the-box on Windows Embedded Compact 7, but can be enabled using Rebex.Castle and/or Rebex.Curve25519 plugins.

3. When connecting to a server specified by an IP address, the server certificate won't pass validation. To resolve that, either use the serve rname in the URL (such as "https://inv.cvut.cz:7104/some_path"), or add the following line to your code:

creator.Settings.SslServerName = "inv.cvut.cz";

Sending HTTP Post using form-data to send data and a file

$
0
0

I need to send an HTTP post that has data and the contents of a file in the body of the post message. Is there any method similar to UploadData/UploadFile in which I can send the URI, the JSON data, and the File needed for the form-data?

What is the negotiated TLS version for FTP SSL?

$
0
0

Hi.

When using FTP SSL, how can I know which version of TLS was finally negotiated by FTPS?

Best regards.

BooKyung Oh.
OpenBoxLab Inc.

Answered: Sending HTTP Post using form-data to send data and a file

$
0
0

You can use Rebex HttpRequest class to send "multipart/form-data" requests, which can contain multiple parts using the approach described in answers to this StackOverflow question: https://stackoverflow.com/questions/566462/upload-files-with-httpwebrequest-multipart-form-data

To adapt the code to use Rebex API, replace this line:

HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(url);

With this:

var creator = new HttpRequestCreator();
HttpRequest request = creator.Create(url);

However, make sure this is actually the request form expected by the web service you are calling. The web services' documentation should make it clear what kind of requests the HTTP client is supposed to use.

Viewing all 3874 articles
Browse latest View live