SSHChannel read buffer to EmulVT

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
bme79
Posts: 6
Joined: Thu 27 Jun 2013 22:58

SSHChannel read buffer to EmulVT

Post by bme79 » Thu 18 Sep 2014 00:05

Thank you for the such a good components. Demo is working well.

I am not good in Delphi and trying to pick it up.

I am trying to build a terminal with SecureBridge and EmulVT component. I have found the demo of SecureBridge are quite difficult to understand. In the demo files there are no comments.

As I understand I should use tcp component to pass data between ScSSHChannel and EmulVT.
Please correct me if I am wrong.

Is it possible to get some simple example how to use ScSSHChannel. How to create a ssh tunnel and pass/send the data via EmulVT or other component.

I have tried to use TnEmulVT1KeyBuffer event to send the data without success. ScSSHChannel1.WriteBuffer(Buffer, Len)

I did not even manage to get any data from ScSSHChannel and copy to Memo.

If you have a simple example please share it.

bme79
Posts: 6
Joined: Thu 27 Jun 2013 22:58

Re: SSHChannel read buffer to EmulVT

Post by bme79 » Fri 19 Sep 2014 12:40

Any help?

I am using a trial version at this moment and it would be good to get some help/support before I buy SecureBridge

bme79
Posts: 6
Joined: Thu 27 Jun 2013 22:58

Re: SSHChannel read buffer to EmulVT

Post by bme79 » Sun 21 Sep 2014 00:42

Could some one correct me. what am I doing wrong?

1. I do ScSSHClient1.Connect
2 ClientSocket1.Open to the same host as ScSSHClient1
3. ScSSHChannel1.Connect DestHost the same as ScSSHClient1

now I do not know how to get the date in EmulVT1

ScSSHChannel1 I have checked Direct to true and as I understand in events ScSSHChannel1AsyncReceive I should get some date.

Please some one correct me or give me some example or steps of what should I do to create a ssh terminal with the help SecureBridge and EmulVT.

Thank you.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: SSHChannel read buffer to EmulVT

Post by Dimon » Tue 30 Sep 2014 09:43

We are sorry for the delay.

You should use the TScSSHShell component for opening the shell on remote side instead of TScSSHChannel. Physically secure connection is provided by TScSSHClient that can be assigned to the TScSSHShell.Client property. And therefore you should not use the TClientSocket.

You can look at the example of using command line in the Shell tab of the SSHClientApp demo.

Post Reply