Recent

Author Topic: [SOLVED] SSHClient Example  (Read 3941 times)

stoffman

  • Jr. Member
  • **
  • Posts: 67
[SOLVED] SSHClient Example
« on: September 21, 2017, 09:44:01 pm »
Hi All,

I'm trying the SSHClient example found in http://wiki.freepascal.org/Components_and_Code_examples

On my machine (windows 10) the compiled application crashes immediately with the message "The application was unable to start correctly (0xc00007b)" ... and I cannot debug it in the IDE (V1.8 RC4) it stops immediately without stopping at the breakpoints I placed :-(

Anyone else experienced the same thing?

Thanks,
Yoni
« Last Edit: September 24, 2017, 08:29:48 am by stoffman »

rvk

  • Hero Member
  • *****
  • Posts: 6109
Re: SSHClient Example
« Reply #1 on: September 21, 2017, 09:57:26 pm »
Is your Laz 1.8RC4 a 32 bit or 64 bit?

You need to put the same bitness dll's from openssl in your exe directory. If you use the wrong ones you can get this error.

The ones included there could be 32 bit and your Lazarus could be 64 bit. So get the latest correct ones from http://indy.fulgan.com/SSL/
openssl-1.0.2l-i386-win32.zip for 32 bit Lazarus
and openssl-1.0.2l-x64_86-win64.zip for 64 bit Lazarus.

stoffman

  • Jr. Member
  • **
  • Posts: 67
Re: SSHClient Example
« Reply #2 on: September 22, 2017, 08:32:28 pm »
Hey,

I'm using the 64bit version. While I believe your suggestion is the right one I cannot really test it as the demo uses libssh2.dll. Which  unfortunately doesn't have a pre-compiled binary for win64 on their website.

maybe you have one just lying around ?  :D

Thanks

rvk

  • Hero Member
  • *****
  • Posts: 6109
Re: SSHClient Example
« Reply #3 on: September 22, 2017, 09:09:29 pm »
You can use the one that's supplied with PHP.
If you search for php_ssh2-0.12-5.5-ts-vc11-x64
You end up here:
http://windows.php.net/downloads/pecl/releases/ssh2/0.12/

The php_ssh2-0.12-5.5-ts-vc11-x64.zip has a 64 bit version of libssh2.dll  8)

stoffman

  • Jr. Member
  • **
  • Posts: 67
RE: SSHClient Example
« Reply #4 on: September 24, 2017, 08:27:37 am »
Works like magic! many thanks!!


It seems like PHP has moved away from libssh2. Do you know why?

« Last Edit: September 24, 2017, 08:29:20 am by stoffman »

rvk

  • Hero Member
  • *****
  • Posts: 6109
Re: RE: SSHClient Example
« Reply #5 on: September 24, 2017, 12:58:46 pm »
It seems like PHP has moved away from libssh2. Do you know why?
What makes you think that? (source?)

Even in PHP 7.1.9 it is included.

 

TinyPortal © 2005-2018