Lazarus

Programming => Networking and Web Programming => Topic started by: stem on July 13, 2020, 06:04:16 pm

Title: SSH with ssl_openssl and Synapse?
Post by: stem on July 13, 2020, 06:04:16 pm
Hi,

I'm trying to connect to a SSH server with ssl_openssl and Synapse - unfortunately with no luck until now.

P.S. Reading a https page with THTTPSend works, so I think OpenSSL works.

My system: Linux Mint Xfce 18.3 64 Bit.

Are there examples or small demos?

Thank you!


stem
Title: Re: SSH with ssl_openssl and Synapse?
Post by: Thaddy on July 13, 2020, 06:09:42 pm
You are probably trying to connect with one of the legacy protocols that have been removed from openssl (and all serious others). Try a connection with at least tls 1.1 and nothing like ssl2/3/tls1.0.
Title: Re: SSH with ssl_openssl and Synapse?
Post by: rvk on July 13, 2020, 06:18:34 pm
I don't think openssl is enough. You'll need a libssh2.sll to do SSH (or cryptlib which isn't opensource).

You can begin here
https://forum.lazarus.freepascal.org/index.php/topic,28053.msg178389.html#msg178389

Wasn't there a wiki page with a ssh connect example somewhere?
Yes. Here https://wiki.freepascal.org/Synapse
Title: Re: SSH with ssl_openssl and Synapse?
Post by: MarkMLl on July 13, 2020, 07:16:27 pm
I'm trying to connect to a SSH server with ssl_openssl and Synapse - unfortunately with no luck until now.

They're completely distinct protocols. As others have said: look for the appropriate libraries. Or alternatively, investigate whether you could wrap a standard SSH client in your code.

MarkMLl
Title: Re: SSH with ssl_openssl and Synapse?
Post by: Thaddy on July 13, 2020, 08:53:12 pm
ópenssl is capable of ssh on its own.
Title: Re: SSH with ssl_openssl and Synapse?
Post by: rvk on July 13, 2020, 08:57:54 pm
ópenssl is capable of ssh on its own.
I'm sure you can provide us with an example in Lazarus to connect to a SSH server with just openssl, right  :D
Title: Re: SSH with ssl_openssl and Synapse?
Post by: Thaddy on July 13, 2020, 09:14:18 pm
Yess. I will do a write up. Takes 2-3 days.
TinyPortal © 2005-2018