Lazarus
Programming => Networking and Web Programming => Topic started 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
-
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.
-
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
-
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
-
ópenssl is capable of ssh on its own.
-
ó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
-
Yess. I will do a write up. Takes 2-3 days.