Recent

Author Topic: SSH with ssl_openssl and Synapse?  (Read 1965 times)

stem

  • Jr. Member
  • **
  • Posts: 88
SSH with ssl_openssl and Synapse?
« 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

Thaddy

  • Hero Member
  • *****
  • Posts: 14368
  • Sensorship about opinions does not belong here.
Re: SSH with ssl_openssl and Synapse?
« Reply #1 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.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: SSH with ssl_openssl and Synapse?
« Reply #2 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
« Last Edit: July 13, 2020, 06:24:43 pm by rvk »

MarkMLl

  • Hero Member
  • *****
  • Posts: 6685
Re: SSH with ssl_openssl and Synapse?
« Reply #3 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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thaddy

  • Hero Member
  • *****
  • Posts: 14368
  • Sensorship about opinions does not belong here.
Re: SSH with ssl_openssl and Synapse?
« Reply #4 on: July 13, 2020, 08:53:12 pm »
ópenssl is capable of ssh on its own.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: SSH with ssl_openssl and Synapse?
« Reply #5 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

Thaddy

  • Hero Member
  • *****
  • Posts: 14368
  • Sensorship about opinions does not belong here.
Re: SSH with ssl_openssl and Synapse?
« Reply #6 on: July 13, 2020, 09:14:18 pm »
Yess. I will do a write up. Takes 2-3 days.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018