EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Synapse and SSH server

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#4629
Posted: 01/03/2008 11:46:05
by Tony Caduto (Basic support level)
Joined: 12/31/2007
Posts: 23

oops, meant Dec 20th 2007 in the last msg
#4630
Posted: 01/03/2008 13:24:39
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

The problem is in your sample application - in Tclientthread.setupserver you are firstly setting
FSSHServer.KeyStorage:= m_HostKeys; but some lines below FSSHServer.KeyStorage := FHostKeys, while FHostKeys is nil.

And without host key server cannot perform key exchange and allow PuTTY to connect.
#4631
Posted: 01/03/2008 14:10:00
by Tony Caduto (Basic support level)
Joined: 12/31/2007
Posts: 23

Hi,
Yes, I discovered that also, but It still does not work. I had some copy and paste errors that I missed.
Now instead of a compression error I get "Server Unexpectedly closed the connection" from putty.

I have attached my updated project.

I verified that the host key is loading but it still not holding a connection.





[ Download ]
#4632
Posted: 01/03/2008 14:31:59
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Error is caused by the line crap := string(ptr). It seems, that pascal is trying to convert pointer as PChar to string, which is not always possible and causes Access Violation.

Also, you can load TElSSHKey simply by calling
if key.LoadPrivateKey('c:\key.txt') = 0 then
FHostKeys.Add(key);
#4633
Posted: 01/03/2008 14:38:30
by Tony Caduto (Basic support level)
Joined: 12/31/2007
Posts: 23

You are right, that is the problem. I didn't think that would cause problems. Just wanted to see what was in the buffer.

I get to the login prompt now :-)

Thanks for the extra set of eyes on this. I should be able to get it going the rest of the way.

Thanks again.


Tony
#4636
Posted: 01/03/2008 14:47:40
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

I recommend you to look at our SSHSFTPSocketServer, it will help you to implement most of all needed event handlers.
#4638
Posted: 01/03/2008 15:25:21
by Tony Caduto (Basic support level)
Joined: 12/31/2007
Posts: 23

Hi,
Is SSHSFTPSocketServer a component or a example project?


Tony
#4641
Posted: 01/03/2008 15:57:46
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

It is an example project of SBB for VCL. It should be put in \Program Files\EldoS\SecureBlackbox\Samples\SFTP\Server\SSHSFTPSocketServer.
#4642
Posted: 01/03/2008 16:40:39
by Tony Caduto (Basic support level)
Joined: 12/31/2007
Posts: 23

Ok, found it. Looks like it's the same as the SSH server with the addition of the
ftp subsystem.

Once I get this all setup with Synapse would you guys like a copy? Seems a demo with Synapse would be a lot closer to the way the Demos with C# are.

Thanks again for all the help. I hope to register the product soon :-)

Later,

Tony
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 7333 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!