473,569 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HOW: SSL/SSH connection ??

Hi,

I have a project to do, that has to transfer files over SSL/SSH
connection.(FTP over SSL or some other method)
I searched a lot but didn't find anything usefull :((

Has anyone any clues how to do that ??

Thank you.
Kris

Nov 17 '05 #1
9 5275
Can you explain a little bit more?

"Kristijan Marin" <kr************ *@hermes-plus.si> a écrit dans le message
de news: ef************* *@TK2MSFTNGP12. phx.gbl...
Hi,

I have a project to do, that has to transfer files over SSL/SSH
connection.(FTP over SSL or some other method)
I searched a lot but didn't find anything usefull :((

Has anyone any clues how to do that ??

Thank you.
Kris

Nov 17 '05 #2
Hi,

Well I need to create an app that will transfer files from one computer to
another.
I need to use these two protocols : FTP, SSH./SSL

I know how to do it for FTP ( i use CFtpConnection) but don't have a clue
how
can I achieve that using SSL/SSH.

I saw some "FTP over SSH/SSL" notes but none was of any use.

I don't even know where to start ..... do I have to transfer files in SSL
byte by byte ?
Do I need client-server application or can I create only my client and the
system takes over on the other side. I don't know. Never did anything with
SSL.

My program will be run from Windows platform.

Or is there any other option to do it like CFTConnection does it.

Thanks a lot for help.

Kris

"Benoit" <no****@forspam .com> wrote in message
news:eG******** ******@tk2msftn gp13.phx.gbl...
Can you explain a little bit more?

"Kristijan Marin" <kr************ *@hermes-plus.si> a écrit dans le message
de news: ef************* *@TK2MSFTNGP12. phx.gbl...
Hi,

I have a project to do, that has to transfer files over SSL/SSH
connection.(FTP over SSL or some other method)
I searched a lot but didn't find anything usefull :((

Has anyone any clues how to do that ??

Thank you.
Kris


Nov 17 '05 #3
> I have a project to do, that has to transfer files over SSL/SSH
connection.(FTP over SSL or some other method)
I searched a lot but didn't find anything usefull :((

SFTP might be what you are looking for (its FTP over SSH I think)
Nov 17 '05 #4
SSL/SSH is not a protocole to send files, it is a way to encryp stream and
dercryp the stream side server. And it is SSL or SSH.
Y can not really send a file with SSL/SSh, you can send a file by FTP encryp
by SSL or by SSh.
For SSL, did you try to put a url like "ftps://" (means ftp+ssl)
For SSH, the best thing it is to use a third application (nammed ssh
agent )like putty as FilleZilla (open source projet)does but I think it is
more expensive in time.


"Kristijan Marin" <kr************ *@hermes-plus.si> a écrit dans le message
de news: eK************* *@TK2MSFTNGP09. phx.gbl...
Hi,

Well I need to create an app that will transfer files from one computer to
another.
I need to use these two protocols : FTP, SSH./SSL

I know how to do it for FTP ( i use CFtpConnection) but don't have a clue
how
can I achieve that using SSL/SSH.

I saw some "FTP over SSH/SSL" notes but none was of any use.

I don't even know where to start ..... do I have to transfer files in SSL
byte by byte ?
Do I need client-server application or can I create only my client and the
system takes over on the other side. I don't know. Never did anything with
SSL.

My program will be run from Windows platform.

Or is there any other option to do it like CFTConnection does it.

Thanks a lot for help.

Kris

"Benoit" <no****@forspam .com> wrote in message
news:eG******** ******@tk2msftn gp13.phx.gbl...
Can you explain a little bit more?

"Kristijan Marin" <kr************ *@hermes-plus.si> a écrit dans le
message de news: ef************* *@TK2MSFTNGP12. phx.gbl...
Hi,

I have a project to do, that has to transfer files over SSL/SSH
connection.(FTP over SSL or some other method)
I searched a lot but didn't find anything usefull :((

Has anyone any clues how to do that ??

Thank you.
Kris



Nov 17 '05 #5
Kristijan Marin wrote:
Hi,

I have a project to do, that has to transfer files over SSL/SSH
connection.(FTP over SSL or some other method)
I searched a lot but didn't find anything usefull :((

Has anyone any clues how to do that ??


A couple of resources:

www.openssl.org

OpenSSL is an open source library that provides SSL/SSH facilities.

http://msdn.microsoft.com/library/de...urity/sspi.asp

SSPI is the part of the Windows Platform SDK that you'd use to build and SSH
program using the built-in Windows security providers.

http://en.wikipedia.org/wiki/SSH_file_transfer_protocol

A description of SFTP. SFTP is a file transfer protocol that operates
through an SSH tunnel. It's not really related to FTP.

http://winscp.net/eng/index.php

WinSCP is an open-source SFTP client for Windows.

http://en.wikipedia.org/wiki/FTPS

FTPS is standard FTP over an SSL connection.

http://www.ford-hutchinson.com/~fh-1-pfh/ftps-ext.html

Some up to date references on ftps.

And finally

www.google.com

where you could have found all of the above yourself with a few keystrokes
and a mouse-click or two.

-cd
Nov 17 '05 #6
SSL and SSH are different thing. SSH uses SSL to secure/encrypt data.

There is no quick and easy way to programmaticall y implement secure
communication in Windows. Implementing secure communication using SSL in
C/C++ requires a lot of work and a good understand of SSL but the effort is
worthed it because there are still not many programmers who can write secure
programs. O'Reily has a very good SSL book. The book also has sample codes on
how to implement secure communication with SSL.

Traditionally, SSH is for Unix based systems but there is also a free SSH
client that works in Windows. It's called PUTTY. However, PUTTY only
implements the client side of SSH (ie. you can only initiate secure
communication to a secure server).

Although SFTP has commands that look like the traditional FTP command, under
the hood SFTP and FTP are completely different. You cannot take a ftp program
and change it to a SFTP program without major rewriting the code.

Implementing secure communication is much easier in Java because there are a
lot of built-in classes for secure communication in Java.

In short, you have to do a lot of study before you can write production
grade SSL programs in C/C++.

"Kristijan Marin" wrote:
Hi,

I have a project to do, that has to transfer files over SSL/SSH
connection.(FTP over SSL or some other method)
I searched a lot but didn't find anything usefull :((

Has anyone any clues how to do that ??

Thank you.
Kris

Nov 17 '05 #7
> There is no quick and easy way to programmaticall y
implement secure communication in Windows.


It might not be overly quick to implement these features
on the Windows platform but it is not that difficult.

Use OpenSSL for SSL:

http://www.openssl.org/

and OpenSSH for SSH:

http://www.openssh.com/

That is exactly how the Zeus for Windows editor implements
secure FTP over SSH and SSL:

http://www.zeusedit.com/lookmain.html

Jussi Jumppanen
Author: Zeus for Windows

Nov 17 '05 #8
I have not heard of Zeus Editor before but I did checked it out briefly after
you mentioned it. My first impression of the product is very good, it has a
lot of features. However, I cannot find the secure ftp feature that you
talked about. After snooping around a bit, I can only find the support for
file transfer over ftp and http. I also failed to get the editor to connect
to a ssh server. I did see the openssl dll libeay32.dll and ssleay32.dll in
the zeus program folder.

anyway, if a programmer can write feature rich programs like Zeus editor,
he/she should not have much trouble writing programs that support secure
communication.

Good job on the editor.

"ju****@zeusedi t.com" wrote:
There is no quick and easy way to programmaticall y
implement secure communication in Windows.


It might not be overly quick to implement these features
on the Windows platform but it is not that difficult.

Use OpenSSL for SSL:

http://www.openssl.org/

and OpenSSH for SSH:

http://www.openssh.com/

That is exactly how the Zeus for Windows editor implements
secure FTP over SSH and SSL:

http://www.zeusedit.com/lookmain.html

Jussi Jumppanen
Author: Zeus for Windows

Nov 17 '05 #9
> My first impression of the product is very good

Thank you :)
However, I cannot find the secure ftp feature that
you talked about.
You will have noticed FTP editing is done using the "File,
FTP" menu.

Now when a file is opened the server name is detemined by
splitting the ftp file name. Zeus then uses the server name
to determine the type of connection required.

But if no server details have been defined Zeus resorts to
the standard FTP protocol with a logon prompt.

So to answer your question, the reason the connection was
only FTP is because the server name was not known to Zeus.

To define a server use the "Options, Editor Options" menu
and in the "FTP Hosts" panel just define the server and
select the required SSL/SSH/TLS protocol.

For example if this is the FTP file name:

ftp://ftp.microsoft.com/example/index.html

the server name would be:

ftp.microsoft.c om

There are more details on defining servers in the Zeus
online help. Just search for "ftp".
Good job on the editor.


Thanks again :)

Jussi Jumppanen
Author: Zeus for Windows Programmer's Editor

Nov 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2315
by: ndsoumah | last post by:
hi all How can I make a database connection available to all the pages in my application? I tried doing it with session but it doesn't seem to work. here's what a did: start_session();
3
12294
by: viviane lima - * - * - | last post by:
Also idea ? how to use ASP for working .DBF files ? Please help me .. thanks Vivian
6
1621
by: charliewest | last post by:
I have developed an application for WM 2003, which frequently transacts with a sql server ce 2.0 database. I have several procedures which utilize the following code: cn = new SqlCeConnection(@"<< sdf file >>"); cn.Open(); cmd = new SqlCeCommand(<< sql string >>, cn); cmd.ExecuteNonQuery(); cn.Close()
6
1789
by: Eric | last post by:
for example: SqlConnection is used in my project, how can I know if all connections were closed after open and execution. If some guys forget to close connections after using, how can i check it out ? best, eric
3
1565
by: Martin | last post by:
Hi Group I apologize for this very basic (I guess) question. I had a look in the posts and on MSDN but don't know where to start. I'm grateful for any push in the right direction. I just don't know what I need to do. Thank you so much! Let's assume I've a procedure in class A which does some database manipulation. When I run the...
6
1482
by: Martin Eyles | last post by:
I have just turned on option strict in ASP/VB.net. I started by happily going through and setting up all of the Dim statements with As clauses, and making my cast explicit. However, I have now got stuck on "late binding". After reading that early binding is faster, I think that it would be best to make everything early binding, but I can't...
6
3431
by: Arsalan Ahmad | last post by:
Hi all, I am creating a website in which in an Item detail page there are a number of web controls (7 or 8) and what is happening that inside each of control's Page_Load() function I am creating a database object to query data from database (using MySQL database). So it means that for each page request I am using 7 or 8 database connection...
22
60186
Frinavale
by: Frinavale | last post by:
How To Use A Database In Your Program Many .NET solutions are database driven and so many of us often wonder how to access the database. To help you understand the answer to this question I've provided the following as a quick example of how to retrieve data from a database. In order to connect to a SQL Server Database using .NET you will need...
7
28882
Merlin1857
by: Merlin1857 | last post by:
Its great producing data for users to look at in your web pages and generally that is sufficient for their needs but sometimes you may want to supply your user with the data in a form they can actually do something more with. This code shows you how to display data from your database and then how to give that data to the user in the form of a...
1
27067
Curtis Rutland
by: Curtis Rutland | last post by:
How To Use A Database In Your Program Part II This article is intended to extend Frinny’s excellent article: How to Use a Database in Your Program. Frinny’s article defines the basic concepts of using databases very well and is prerequisite reading for this article. Frinny’s article explains how to use a SQL Server in your program, but...
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8125
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7974
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.