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

How to execute an external process using Rebex SSH Server?

$
0
0

I'm looking to execute git or mercurial using the rebex FileServer. Any pointers. I have done this before using another library (which has problems, hence looking at alternatives), and it seems Rebex doesn't support exec in it's shell?

I see I can hook the ShellCommand event, but how do I interact with the process I spawn. For example, when running a mercurial command over ssh it does an "exec hg serve -R c:\repo --stdio" and then interacts with the instance running on the server to run the actual command (clone etc).

Looking for pointers.


Pleasure Through Volunteerism & Charitable Providing

$
0
0
good stewardshipFORCE AUTO SOLUTIONS (C) fotki.com" style="max-width:400px;float:left;padding:10px 10px 10px 0px;border:0px;">{{|

How to execute an external process using Rebex SSH Server?

$
0
0

I'm looking to execute git or mercurial using the rebex FileServer. Any pointers. I have done this before using another library (which has problems, hence looking at alternatives), and it seems Rebex doesn't support exec in it's shell?

I see I can hook the ShellCommand event, but how do I interact with the process I spawn. For example, when running a mercurial command over ssh it does an "exec hg serve -R c:\repo --stdio" and then interacts with the instance running on the server to run the actual command (clone etc).

Looking for pointers.

FTPS connection failing, I think due to server broadcasting non-routable IP address

$
0
0

I'm trying to connect to an end user FTP site using SSL, but they don't have their server configured correctly, so the data connection fails - active or passive, and the IP it returns is a 10.x.x.x IP. FileZilla will notice this and drop back to using the original IP address for the command connection. Is there anyway that I can have the Rebex library do the same? Or use an IP that I specify?

Thanks.

Answered: More verbose logs

$
0
0

This looks like the server closed the connection while receive the message. This used to be quite common some years ago (buggy antivirus software was the most common cause), but it's not very common any more. A communication log might make it possible to tell what is going on.

You can create logs at various levels of verbosity using Smtp object's LogWriter property. LogLevel.Debug is sufficient in many cases. The most log level verbose is LogLevel.Verbose - this will result in a log that includes the communication between the client and the server (be careful with these logs - they might include credentials or other sensitive data).

Timeout (in miliseconds) can be specified using Smtp object's Timeout property. Default timeout value is 60000 (60 seconds).

Recetas De Comida

$
0
0

De esta manera se ha pronunciado Rajoy en un mitin en el restaurante Malaspina de Sevilla, en el que le han acompañado el presidente del Partido Popular recetas para adelgazar andaluz, J. Manuel Moreno, el exalcalde de la ciudad y aspirante al Congreso, J. Ignacio Zoido, y el presidente provincial de Sevilla, J. Bueno. Mientras tanto pelaremos los ajos y exprimir el jugo de los limones, y los vamos a poner en un vaso para batirlos, al lado de un chorrito de aceite de oliva virgen, un poco de perejil y un toque de pimienta negra molida. Pondremos el pollo sobre la cama de patatas que teníamos dentro del horno, y subimos la temperatura del mismo a 180 grados , con calor tanto por arriba como por abajo. Hornearemos a esa temperatura sobre 40-cuarenta y cinco minutos, y después daremos la vuelta y dejamos exactamente el mismo tiempo para que se haga la otra una parte del pollo.


Esta receta de pollo asado con manzana es una de las más ricas que puedes preparar, y ya verás que la puedes hacer de manera sencilla siguiendo las indicaciones que te mostramos paso a paso. Si te agrada preparar pollo asado, te vamos a mostrar una receta que seguro te encanta cuando la prepares, se trata de una receta para hacer un estupendo un pollo asado con pimientos. Ahora os mostramos una interesante receta con la que preparar un sabroso pollo asado con nueces, con un toque de sabor buenísimo. Cabe indicar del mismo modo otros beneficios del consumo de la carne de pollo como calorías, hierro, ácidos grasos monoinsaturados, cinc, vitamina C, entre otras muchas.


Una salsa curry clásica se hace troceando dos cebollas de tamaño mediano, y pochándolas con un poco de aceite en una sartén, preferentemente que sea antiadherente. Esta clase de sartenes se fabrican con materiales singulares a fin de que los comestibles se peguen lo menos posible en el fondo de la sartén si bien empleemos muy poca cantidad de aceite grasa.


Además de todo esto, el pollo es perfecto para a una enorme variedad de recetas de todo tipo, desde pollo asado hasta pollo frito, pasando por la posibilidad de emplearlo en sandwiches ensaladas. El motivo es que tarda más en criarse y la nutrición de estos pollo es mucho más variada y con más libertad de movimientos. Este es el pollo más económico y el que normalmente encontramos en las tiendas y supermercados.


La pechuga de pollo es una carne bien sabrosa y a la plancha acabada de hacer es una delicia, el único inconveniente es que a veces queda seca pero con esta salsa queda tan mantecosa que vas a morir de placer. El pollo a la cazadora es un clásico de siempre totalmente delicioso, si bien lleva un tanto de trabajo, la verdad, menos mal que Nigella Lawson se ha dedicado a simplificar esta y otras recetas para hacernos la vida más fácil. De verdad que la tienes que probar, La salsa queda espesa y riquísima, el pollo crujiente por fuera, tierno y meloso por dentro y muy sabroso, no puedo expresarlo con palabras, ¡hay que probarlo!


Añadir diferentes elementos a tu receta puede hacer que cada vez que la prepares tengas una receta nueva, puedes mudar el pollo por carne atún y también sumar huevo cocido etcétera Existe una gran pluralidad de recetas para adelgazar de pollo en salsa, y en este artículos os vamos a recoger, y explicar, las más famosas. Con el pollo ya listo, añadimos toda la verdura que hemos troceado, junto con una hoja de laurel y un tanto de sal. Al ver que la verdura ya está bien dorada, añadimos la copa de vino y removemos un tanto.


Desde las lejanas tierras árabes nos llega una original receta: el shawarma de pollo Es ideal para cuando tienes muchas personas a la mesa, por el hecho de que se prepara rápido y es fácil de servir. El torrado de la cebolla es clave en esta receta: a fin de que desarrolle su sabor tiene que dorarse a fuego vivo, mas cuidado por el hecho de que si se quema dará sabor amargo y estropeará la pasta de curry. Aplasta los dientes de ajo con un pellizco de sal hasta formar una pasta ( uso un mortero, de los de siempre) y añádelos a la sartén.


Con un tanto de práctica, un pollo es un enorme aliado en la cocina, aparte de ser relativamente asequible y no tener desperdicio. Una vez esté el pollo limpio, salpimentado y rociado con limón y aceite de oliva en una bandeja de horno, rellénalo con un limón partido en dos y las yerbas aromáticas que sean de tu gusto. Al final de la cocción, puedes subir la temperatura dos minutos a fin de que adquiera color dorado. En una sartén rehoga la cebolla y los ajos y añade la harina y el caldo de pollo.


Cuando el pollo esté para servirlo, darle una segunda fritura a las patatas para que queden crepitantes. Servir el pollo a l'ast cortado en pedazos y acompañalo con las patatas fritas y la salsa que se habrá recuperado de la bandeja. Puedes también acompañar el pollo a l'ast con patatas fritas con un tanto de mayonesa alioli y además una ensalada. Mientras la quinoa se marcha cociendo, se baten los huevos en un plato con un pellizco de sal.


Me acabas de rememorar que hace mucho que no preparo pollo con piña, y eso que me chifla... no puede ser, tendré que ponerle solución jeje. Hacemos con el cuchillo una cruz en la piel y las metemos al microondas seis-8 minutos con medio vaso de agua también dentro. Ahora trocea las verduras, picamos los pimientos y la cebolla, las salteamos con un chorrito de aceite.


Bajamos el fuego, tapamos la cacerola y dejamos cocer a fuego suave hasta el momento en que el pollo esté tierno (aprox. Mezclamos bien y servimos acompañado de arroz basmati, espolvoreado con cilantro fresco y almendras laminadas torradas. Me alegro de que te haya agradado tanto la receta para estimar completar la lista de ingredientes que te faltan mediante una veloz compra. Abrí el analytics y ciertamente, picotazo de visitas y subida de tráfico de crawlers de Ahrefs, Moz y similares. Esto sumado al exagerado número de anuncios se refleja en una mala experiencia de usuario, perjudicando al posicionamiento.

GetItems Traverse Mode does not work

$
0
0

Hello
I am using Rebex.FTP(v. 4.0.6249.0) library for my FTP client and I have troubles with GetItems method's traversalMode parameter. If it is set to NonRecursive, only the current directory is returned and not the files inside. If I use MatchFilesShallow or MatchFilesDeep, I get "Ambiguous usage of path and mode.\r\nParameter name: remotePath" exception. Could you please provide any workaround for this problem?
Thank you

Getting error for SFTP - /Myfile.txt is not a file or directory

$
0
0

Hi,

Our customer getting strange error for one server where they do have read/write permission. Looks like following piece of code failing when GetItems is called. client is FileTransfer Client. Customer tried other Free Clients like WinSCP and tools from other vendor and it worked fine. Any clue would be highly appreciated.

var list = client.GetItems(fs); 

More info from exception

ProblemType : NotFileOrDirectory
RemotePath : /Myfile.txt
Status : UnclassifiableError
SftpStatus : UnclassifiableError

HResult : -2146233088 (0x80131500)

Platform: Win32NT 6.1.7601.65536
CLRVersion : 4.0.30319.42000


Answered: FTP File disappears (deletes?) after ftp.Download()?

$
0
0

It seems that the file is deleted by some process on the server which was not invoked (explicitly) by client.

To be sure that the delete process was not invoked by the client create communication log and see which commands were sent to the server.

The last advice is to use the Ftp.GetFile() method instead of Ftp.Download() method. This will definitely issues only download process.

Pop3 and IMAP doesn't take empty password

$
0
0

Hi, I am using 'Rebex Components 2017 R2'.

On my exchange 2010, modified minimum password length to zero and used empty password to my email account.

Now when i try to login into my account, it is giving exception: string cannot have zero length. Parameter name password at Rebex.net.pop3.login(String userName, String password, Pop3Authentication method) at Rebex.Samples.Worker.DoMethod()

This is the requirement to login in to account with empty password. I am able to login without password through web application, but not able to login through our application. I tried to login with the help of provided sample applications.

Could you help me with this.

SSH Client for mercurial

$
0
0

Is it possible to create a plink like application using rebex. We are using plink.exe (part of putty) as the ssh client with mercurial, eg :

hg.exe clone ssh://localhost:9010// --ssh "\"plink.exe\" -ssh -2 -C -x -a -l abc -pw password -batch" --config ui.username=Test --noninteractive --encoding cp1252 --noupdate --time reponame

I'm love to be able to replicate this functionality (not all of plink, just enough to do what I need) with rebex. I'm hoping it might be faster than plink, and I can avoid plink occasionally popping up dialogs when something goes wrong!

I played with the RExec sample but I guess I need something like what you did for the server side?

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!

Answered: Pop3 and IMAP doesn't take empty password

$
0
0

The Login method rejects empty passwords before even attempting authentication. We will disable this check (we will only check for null) and post a link to a hotfix shortly.

Thanks for bringing this issue to our attention!

Answered: Rebex Tiny SFTP Won't accept my public key

$
0
0

I accidentally edited the server password and is causing the error... facepalms

Rebex Tiny SFTP Server: Public-Key Authentication Failure

$
0
0

I'm trying to connect via two-way public-key authentication from a client to Rebex Tiny SFTP Server. I've setup my public key properly and have also set my private key properly. Need assistance below. It seems to be rejecting the pair? I'm not sure.

User public key 'C:\Users\BRITOL\Desktop\SSHKeys\openssh.pub' loaded.
Fingerprint: f3:f5:55:31:ae:62:58:90:7d:83:2a:37:d8:46:83:ff
Public key authentication enabled.
Binding SFTP server to port 22...
Starting...
19:07:15.892 Info Server: Starting server.
19:07:15.893 Info Server: Listening for connections at 0.0.0.0:22.
19:07:15.895 Info Server: Server started.
SFTP server has started and is ready to accept connections.
19:07:19.871 Debug Server: Accepted connection from 10.4.3.27:25999.
19:07:19.874 Info Server: Session 1: Started on connection from 10.4.3.27:25999.
19:07:19.875 Debug SSH: Session 1: Local SSH version: SSH-2.0-RebexSSH_1.0.2.27069
19:07:19.878 Debug SSH: Session 1: Remote SSH version: SSH-2.0-OpenSSH_3.5p1
19:07:19.879 Debug SSH: Session 1: Performing algorithm negotiation and key exchange.
19:07:19.881 Verbose SSH: Session 1: Sent packet SSH_MSG_KEXINIT (808 bytes).
19:07:19.882 Verbose SSH: Session 1: Received packet SSH_MSG_KEXINIT (544 bytes).
19:07:19.884 Debug SSH: Session 1: Performing key exchange using diffie-hellman-group-exchange-sha1 with ssh-rsa.
19:07:19.931 Verbose SSH: Session 1: Received packet SSH_MSG_PACKET34 (24 bytes).
19:07:19.933 Verbose SSH: Session 1: Sent packet SSH_MSG_KEXDH_REPLY (536 bytes).
19:07:19.949 Verbose SSH: Session 1: Received packet SSH_MSG_PACKET32 (272 bytes).
19:07:20.024 Verbose SSH: Session 1: Sent packet SSH_MSG_PACKET33 (832 bytes).
19:07:20.024 Verbose SSH: Session 1: Sent packet SSH_MSG_NEWKEYS (16 bytes).
19:07:20.026 Debug SSH: Session 1: Current encryptor is aes128-cbc/hmac-md5.
19:07:20.043 Verbose SSH: Session 1: Received packet SSH_MSG_NEWKEYS (16 bytes).
19:07:20.045 Debug SSH: Session 1: Current decryptor is aes128-cbc/hmac-md5.
19:07:20.046 Debug SSH: Session 1: Key exchange finished.
19:07:20.093 Verbose SSH: Session 1: Received packet SSH_MSG_SERVICE_REQUEST (48 bytes).
19:07:20.095 Debug SSH: Session 1: Performing authentication.
19:07:20.098 Verbose SSH: Session 1: Sent packet SSH_MSG_SERVICE_ACCEPT (48 bytes).
19:07:20.099 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (64 bytes).
19:07:20.100 Debug SSH: Session 1: Starting authentication as 'tester' for 'ssh-connection'.
19:07:20.102 Verbose SSH: Session 1: Sent packet SSH_MSG_USERAUTH_FAILURE (80 bytes).
19:07:20.104 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (240 bytes).
19:07:20.105 Verbose SSH: Session 1: Sent packet SSH_MSG_PACKET60 (192 bytes).
19:07:20.114 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (384 bytes).
19:07:20.116 Info Server: Session 1: Authentication for 'tester' failed.
19:07:20.116 Debug SSH: Session 1: Unable to authenticate 'tester' using a private key.
19:07:20.118 Verbose SSH: Session 1: Sent packet SSH_MSG_USERAUTH_FAILURE (80 bytes).
19:07:20.119 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (528 bytes).
19:07:20.120 Verbose SSH: Session 1: Sent packet SSH_MSG_PACKET60 (480 bytes).
19:07:20.125 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (592 bytes).
19:07:20.127 Info Server: Session 1: Authentication for 'tester' failed.
19:07:20.129 Debug SSH: Session 1: Unable to authenticate 'tester' using a private key.
19:07:20.130 Verbose SSH: Session 1: Sent packet SSH_MSG_USERAUTH_FAILURE (80 bytes).
19:07:20.132 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (96 bytes).
19:07:20.133 Verbose SSH: Session 1: Sent packet SSH_MSG_PACKET60 (64 bytes).
19:07:20.135 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_INFO_RESPONSE (80 bytes).
19:07:20.136 Info Server: Session 1: Authentication for 'tester' failed.
19:07:20.138 Debug SSH: Session 1: Response from 'tester' not accepted.
19:07:20.138 Verbose SSH: Session 1: Sent packet SSH_MSG_USERAUTH_FAILURE (80 bytes).
19:07:20.140 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (96 bytes).
19:07:20.141 Verbose SSH: Session 1: Sent packet SSH_MSG_PACKET60 (64 bytes).
19:07:20.149 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_INFO_RESPONSE (80 bytes).
19:07:20.156 Info Server: Session 1: Authentication for 'tester' failed.
19:07:20.162 Debug SSH: Session 1: Response from 'tester' not accepted.
19:07:20.169 Verbose SSH: Session 1: Sent packet SSH_MSG_USERAUTH_FAILURE (80 bytes).
19:07:20.176 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (96 bytes).
19:07:20.182 Verbose SSH: Session 1: Sent packet SSH_MSG_PACKET60 (64 bytes).
19:07:20.188 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_INFO_RESPONSE (80 bytes).
19:07:20.194 Info Server: Session 1: Authentication for 'tester' failed.
19:07:20.200 Debug SSH: Session 1: Response from 'tester' not accepted.
19:07:20.207 Verbose SSH: Session 1: Sent packet SSH_MSG_USERAUTH_FAILURE (80 bytes).
19:07:20.213 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (144 bytes).
19:07:20.219 Info Server: Session 1: Authentication for 'tester' failed.
19:07:20.225 Debug SSH: Session 1: Invalid password for 'tester'.
19:07:20.231 Verbose SSH: Session 1: Sent packet SSH_MSG_USERAUTH_FAILURE (80 bytes).
19:07:20.241 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (144 bytes).
19:07:20.248 Info Server: Session 1: Authentication for 'tester' failed.
19:07:20.254 Debug SSH: Session 1: Invalid password for 'tester'.
19:07:20.261 Verbose SSH: Session 1: Sent packet SSH_MSG_USERAUTH_FAILURE (80 bytes).
19:07:20.267 Verbose SSH: Session 1: Received packet SSH_MSG_USERAUTH_REQUEST (144 bytes).
19:07:20.274 Info Server: Session 1: Authentication for 'tester' failed.
19:07:20.281 Debug SSH: Session 1: Invalid password for 'tester'.
19:07:20.290 Error SSH: Session 1: Authentication canceled. Error: Rebex.Net.Protocols.Ssh.AGZ: Authentication canceled. ---> Rebex.Net.Protocols.Ssh.AGZ: Authentication canceled.
   at Rebex.Net.Protocols.Ssh.VTZ.KZ()
   at Rebex.Net.Protocols.Ssh.VTZ.SZ(MHZ H)
   at Rebex.Net.Protocols.Ssh.VTZ.SZ(BAZ H, RZZ S)
   at Rebex.Net.Protocols.Ssh.CGZ.VT(Int32 H, Int32 S)
   --- End of inner exception stack trace ---
   at Rebex.Net.Protocols.Ssh.CGZ.VT(Int32 H, Int32 S)
   at Rebex.Net.Protocols.Ssh.CGZ.VT()
   at Rebex.Net.Protocols.Ssh.CGZ.AT(Int32 H, Int32 S, Int32 K, Int32 E, SocketException F)
19:07:20.297 Verbose SSH: Session 1: Sent packet SSH_MSG_DISCONNECT (64 bytes).
19:07:20.300 Error Server: Session 1: Error: Rebex.Net.Protocols.Ssh.AGZ: Authentication canceled. ---> Rebex.Net.Protocols.Ssh.AGZ: Authentication canceled.
   at Rebex.Net.Protocols.Ssh.VTZ.KZ()
   at Rebex.Net.Protocols.Ssh.VTZ.SZ(MHZ H)
   at Rebex.Net.Protocols.Ssh.VTZ.SZ(BAZ H, RZZ S)
   at Rebex.Net.Protocols.Ssh.CGZ.VT(Int32 H, Int32 S)
   --- End of inner exception stack trace ---
   at Rebex.Net.Protocols.Ssh.CGZ.VT(Int32 H, Int32 S)
   at Rebex.Net.Protocols.Ssh.CGZ.VT()
   at Rebex.Net.Protocols.Ssh.CGZ.AT(Int32 H, Int32 S, Int32 K, Int32 E, SocketException F)
19:07:20.307 Info Server: Session 1: Closed connection from 10.4.3.27:25999.

Answered: Rebex Tiny SFTP Server: Public-Key Authentication Failure

$
0
0

According to the log, the client is attempting to authenticate using its key, but the server is unable to map the key to the user. This would occur if the private key used by the client did not correspond to the user public key at the server.

I tried setting up an instance of TinySftpServer in the same way (download a ZIP with executable, config files and keys), but I'm able to connect fine using OpenSSH's SFTP client:

sftp -P 22 -i userkey.pri serveraddress

Please check it out and let us know whether you have set up anything differently.

By the way, you appear to be using OpenSSH_3.5p1, which is rather old. However, this is unlikely to be the cause of the issue.

Answered: IMAP GetMessage() throwing Timeout exception, are you sure the timeout value is 60 seconds?

$
0
0

The default for Timeout should be 60 seconds.

Can you please post here log of the communication so we can see operation timings? Or send it to support@rebex.net alternatively.

Please note, that ‘An existing connection was forcibly closed by the remote host’ error is not time out related. It refers to closed connection. There is no use to wait until timeout for lost connections error. Such errors are reported immediately.

Impersonation - Exchange Migration

$
0
0

Hi.

I'm trying to configure my application to migrate a lot of mail accounts to Office 365 using Imap Impersonation (following the post in the Rebex Forum: http://forum.rebex.net/2359/imap-impersonation-how-to-do-it?show=2359#q2359). Basically I set up my server and the mail accounts in according to the instructions in following link: http://cloudfinder.com/user-impersonation-settings-office-365/.

When I try to connect in referred account, the system trhows the error: User is authenticated but not connected (BAD). I can only connect if I sign the 'Full Access' permission on target account. Is there any configuration that can be done in my code to connect to the target account without assigning 'Full Access' permission?

Thank you!

Answered: Rebex.Sftp Intermittent connection problem

$
0
0

The exception "No connection could be made because the target machine actively refused it 172.26.0.64:22" usually means that the remote SFTP server is not running (no one listen at 172.26.0.64 port 22).

Please ensure that the SFTP server is running and you are able to connect to it using any SSH client.

Alternatively, it can be caused by server's DDoS protection. If too much connections are requested to the server, the server refuses some of them. Please ensure this is not the case.

Throwing SmtpException when enabling encryption at below code in smtp.cs file.

$
0
0

if ((_supportedExtensions & SmtpExtensions.ExplicitSecurity) == 0)
throw new SmtpException(SmtpStrings.TlsNotSupported, SmtpExceptionStatus.OperationFailure);

        if ((_enabledExtensions & SmtpExtensions.ExplicitSecurity) == 0)
            throw new SmtpException(SmtpStrings.TlsDisabled, SmtpExceptionStatus.OperationFailure);

_supportedExtensions and enbaleextension does not have ExplicitSecurity so , its throwing. what should be enable in code.

We are using

Viewing all 3904 articles
Browse latest View live


Latest Images