EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to connect IdHTTPServer with SSH?

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#4210
Posted: 11/04/2007 22:47:53
by albert Chan (Standard support level)
Joined: 03/09/2007
Posts: 7

I have developed a simple web server to receive file from clients and I use IdHTTPServer (Indy).

However, I do not find any sample use IdHTTPServer and SSH.
How to connect IdHTTPServer with SSH?

Thanks!
#4211
Posted: 11/05/2007 00:56:34
by Eugene Mayevski (EldoS Corp.)

HTTP over SSH - this is something new. Are you sure that you need *SSH* and not SSL/TLS?


Sincerely yours
Eugene Mayevski
#4212
Posted: 11/05/2007 01:35:07
by albert Chan (Standard support level)
Joined: 03/09/2007
Posts: 7

I have to use SSH instead of SSL.
Do you have any sample related to HTTP with SSH?
Thanks!
#4213
Posted: 11/05/2007 02:38:15
by Eugene Mayevski (EldoS Corp.)

I see. What you need is to run the server on custom port and also run an SSH server that will route the requests. This is a complicated task for which there's no sample available. Creation of the prototype server would require about a week of work and we can offer some custom services in this area, if you are interested.


Sincerely yours
Eugene Mayevski
#4236
Posted: 11/06/2007 19:55:18
by albert Chan (Standard support level)
Joined: 03/09/2007
Posts: 7

The situation is as follows:
I have a web server and SSH server. SSH Server receive data and have to redirect the data to Web Server for futher process.
How can I do port forwarding or forward data from SSH Server to Web Server?
#4237
Posted: 11/07/2007 01:14:31
by Eugene Mayevski (EldoS Corp.)

There's too little information in your post.
1) What kind of servers do you have? Did you write them?
2) SSH is a family of protocols, not a single protocol. So it's not clear, what information you want to route and how this information appears.


Sincerely yours
Eugene Mayevski
#4239
Posted: 11/07/2007 01:29:41
by albert Chan (Standard support level)
Joined: 03/09/2007
Posts: 7

I use Indy 10 IdHTTPServer1 to write a simple web server to receive data.
If no SHH Server, it work fine.
However, I need to add SHH Server before web server.
i.e. client send data ---> SSH Client ---> SSH Server(port 22) ---> Web Server (port 8080)

The data is a data file.
When SSH Server receive data, data will transfer to Web Server (port forwarding), so that web server can receive data for futher process.

Web Server will listen port 8080. If any data tranfer to it, it will connect and use IdHTTPServer1CommandGet(AContext: TIdContext;
ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo) to capture.

My problem is : if data receive in SSH Server, how to redirect to port 8080 for web server.
After proceess data, Web Server have to send a simple message 'OK' to client.
How can I send message 'OK' to SSH Server so that it will send to SSH Client?

Thanks!
#4247
Posted: 11/07/2007 10:56:33
by Eugene Mayevski (EldoS Corp.)

As said, SSH is a *family* of protocols. Do you know *exactly*, what SSH clients will be used and how *exactly* they will send the data? Are you going to create those SSH clients or you need to use some predefined one? Or there's some SSH tunneling to be used?

The above answers determine the way the server must be coded.


Sincerely yours
Eugene Mayevski
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 2630 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!