473,396 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SFTP Information, technical, white paper etc.

Hi...
I'm looking for some information, technical, white paper - whatever - on how
SFTP works.
I need to add SFTP capabilities into an app's present FTP capabilities.
I'm not really looking for a 3rd party solution, like a plug in.
Would prefer to write the code in C++ or C#.
Just haven't found much technical information on the topic.

Thanks in advance for any suggestions, leads in the right direction.

Cheers...

--
Gus M. Creces
The Clarion Handy Tools Page
http://news.cwhandy.ca
gc*****@sympatico.ca


Jul 21 '05 #1
3 4115
"Gus M. Creces" <gc*****@sympatico.ca> wrote in
news:OR**************@TK2MSFTNGP10.phx.gbl:
I'm looking for some information, technical, white paper - whatever - on
how SFTP works.
I need to add SFTP capabilities into an app's present FTP capabilities.
I'm not really looking for a 3rd party solution, like a plug in.
Would prefer to write the code in C++ or C#.


SFTP is not an easy undertaking. Are you not open to any third party
solutions, even free open source onse?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Jul 21 '05 #2
On Mon, 16 Feb 2004 13:18:19 -0500, Gus M. Creces wrote:
Hi...
I'm looking for some information, technical, white paper - whatever - on how
SFTP works.


I wonder what you mean by SFTP. Most often, it is referring to a file
transfer protocol included with SSH2. If you are referring to that, you
may want to look at http://www.ietf.org/html.charters/secsh-charter.html as
that IETF group has some working drafts describing SSH and the SSH File
Transfer Protocol plus there may be information about it at
http://www.openssh.org/. Another thing that is sometimes called SFTP is
FTP over a SSL connection. There is no formal document describing that
although it was in an old IETF Internet Draft. That's what I call FTP with
implicit SSL. In this, you use the standard FTP protocol over SSL
encryption using a special port (990) and special data channel negotiation
commands are used (PBSZ 0 along with either PROT P for an encrypted data
port or PROT C for an unencrypted data port). This is being depreciated in
favor of FTP with explicit SSL which is described in
(http://www.ietf.org/internet-drafts/...tp-ssl-12.txt).

There also is a protocol called SFTP (Simple File Transfer Protocol) which
is described in RFC 913 (you can get the RFC's in many places). I doubt
that you will see much demand for RFC 913 support.

Indy (http://www.indyproject.org) currently does support FTP with TLS (both
implicit and explicit SSL) using third-party SSL frameworks (the vendor
would make descendant classes for it to work transparantly). I had looked
at adding OpenSSL support to the DotNET version of Indy but I found I
couldn't do this as I got in way over my head. The problem is that I would
have to use the P/Invoke interface as well as some type marshaling (.DLL's
are very particular about such things in DotNET, it can be tricky). Making
this worse is that in OpenSSL, you have .DLL callback routines and you have
to set a procedure to an address of a SSL method located in the .DLL. If
someone can do this in DotNET, we may be able to support FTP with SSL plus
support a number of other SSL protocols.
--
J. Peter Mugaas - Indy Pit Crew
Internet Direct (Indy) Website - http://www.nevrona.com/Indy
Personal Home Page - http://www.wvnet.edu/~oma00215
If I want to do business with you, I will contact you. Otherwise, do not
contact me.
Jul 21 '05 #3
Peter...
I've got FTP over SSL under control.
It's the SSH2 thingy I'm after.
Haven't followed up on your links yet but they look like a good start from a
cursory look-over.
Much obliged for the very detailed response and for clearing up the
definition of "SFTP".

Cheers...

--
Gus M. Creces
The Clarion Handy Tools Page
http://www.cwhandy.ca
http://news.cwhandy.ca
su*****@cwhandy.com
"J. Peter Mugaas" <om******@mail.wvnet.edu> wrote in message
news:1o****************************@40tude.net...
On Mon, 16 Feb 2004 13:18:19 -0500, Gus M. Creces wrote:
Hi...
I'm looking for some information, technical, white paper - whatever - on how SFTP works.
I wonder what you mean by SFTP. Most often, it is referring to a file
transfer protocol included with SSH2. If you are referring to that, you
may want to look at http://www.ietf.org/html.charters/secsh-charter.html

as that IETF group has some working drafts describing SSH and the SSH File
Transfer Protocol plus there may be information about it at
http://www.openssh.org/. Another thing that is sometimes called SFTP is
FTP over a SSL connection. There is no formal document describing that
although it was in an old IETF Internet Draft. That's what I call FTP with implicit SSL. In this, you use the standard FTP protocol over SSL
encryption using a special port (990) and special data channel negotiation
commands are used (PBSZ 0 along with either PROT P for an encrypted data
port or PROT C for an unencrypted data port). This is being depreciated in favor of FTP with explicit SSL which is described in
(http://www.ietf.org/internet-drafts/...tp-ssl-12.txt).

There also is a protocol called SFTP (Simple File Transfer Protocol) which
is described in RFC 913 (you can get the RFC's in many places). I doubt
that you will see much demand for RFC 913 support.

Indy (http://www.indyproject.org) currently does support FTP with TLS (both implicit and explicit SSL) using third-party SSL frameworks (the vendor
would make descendant classes for it to work transparantly). I had looked
at adding OpenSSL support to the DotNET version of Indy but I found I
couldn't do this as I got in way over my head. The problem is that I would have to use the P/Invoke interface as well as some type marshaling (.DLL's
are very particular about such things in DotNET, it can be tricky). Making this worse is that in OpenSSL, you have .DLL callback routines and you have to set a procedure to an address of a SSL method located in the .DLL. If
someone can do this in DotNET, we may be able to support FTP with SSL plus
support a number of other SSL protocols.
--
J. Peter Mugaas - Indy Pit Crew
Internet Direct (Indy) Website - http://www.nevrona.com/Indy
Personal Home Page - http://www.wvnet.edu/~oma00215
If I want to do business with you, I will contact you. Otherwise, do not
contact me.

Jul 21 '05 #4

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

Similar topics

1
by: Tim Schaefer | last post by:
Hi, I'm looking for some independent comments on this white paper either here or off-line. http://otn.oracle.com/deploy/performance/pdf/CWP_9IVSDB2_PERF.PDF If you want to contact me...
11
by: Dennis D. | last post by:
Back a few decades the proper way to learn a language began with a white paper. Do they exist for dot net, or would a person begin by studying the compiler specs? Guess what I'm asking is: Where...
3
by: Gus M. Creces | last post by:
Hi... I'm looking for some information, technical, white paper - whatever - on how SFTP works. I need to add SFTP capabilities into an app's present FTP capabilities. I'm not really looking for a...
0
by: Bernhard Günther | last post by:
Hello friends of php, PhP-Version is 4 on a FreeBSD-System using apache. Got a problem using ssh2.sftp. Installed correctly (libssh2, ssh2.so-module). Connecting with publickey works,...
1
by: bienwell | last post by:
Hi, Does any one know about sftp ??? Can I call it in ASP.NET program or it run independently ? What to I need for the installation ??? I'd like to upload the file with large size. In ASP.NET...
12
by: jcor | last post by:
Hi, I'm using Ubuntu 7.04. I'm writing a sript that sends files via ftp for several destinations. So far I used Net::FTP and it worked fine. My problem is that I need to send files via SFTP...
0
by: arkascha | last post by:
Helloooo everyone, I have a problem with a small solution I made some three or four years ago. Worked flawless until deployed onto newer machines now and guess what, I cannot fix it. Maybe some...
7
by: K Viltersten | last post by:
As i noticed, there's no built-in facility for working with SFTP in DotNet. So, i'd like to learn how to build that up. When i went googling for knowledge, i only get a ton of hits on tutorials...
2
by: sivashanmugam | last post by:
Hi Friends, I tried to send some zips from local to remote location but the transfer is not sucess i can transfer the zips partially can some one assist me how to make it as sucess i had...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.