Home > Archive > Visual Basic > December 2005 > SFTP
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| I use the wininet API to FTP files.
InternetOpen
InternetConnect
FtpGetFile
I now need to connet and upload a files to a
secure FTP server.
It is described as a SFTP/SSH server.
I guess that means FTP over SSH.
Anyway, is there a way to connect to the
server using the wininet API calls.
If not, how then?
I Needless to say I'm having no luck.
Thanks,
kpg
| |
| Lance R. 2005-12-13, 6:56 pm |
| > I use the wininet API to FTP files.
>
> InternetOpen
> InternetConnect
>
FtpGetFile
>
> I now need to connet and upload a files to a secure FTP
server.
>
> It is described as a SFTP/SSH server.
>
> I guess that means
FTP over SSH.
No, I'm sorry but this is not the case. SFTP is a completely
different protocol than FTP, and is different from FTP over SSH.
> Anyway, is
there a way to connect to the server using the wininet API
> calls.
A
regular FTP server yes. As for SFTP, you'll have to implement encryption and a
completely different protocol than FTP. I don't know if third party components
are a choice for you, but if so you should try a web search and try some
out.
Regards,
Lance R.
/n software
http://www.nsoftware.com/
-
| |
| vglass@jscape.com 2005-12-13, 6:56 pm |
| You may wish to try SSH Factory for .NET
http://www.jscape.com/sshfactorydotnet/index.html
See the Jscape.Sftp.Sftp class for details.
kpg wrote:
> I use the wininet API to FTP files.
>
> InternetOpen
> InternetConnect
> FtpGetFile
>
> I now need to connet and upload a files to a
> secure FTP server.
>
> It is described as a SFTP/SSH server.
>
> I guess that means FTP over SSH.
>
> Anyway, is there a way to connect to the
> server using the wininet API calls.
>
> If not, how then?
>
> I Needless to say I'm having no luck.
>
> Thanks,
> kpg
| |
|
| Here is what I've learned so far. Much of the confusion comes
from the fact that SFTP has at least three different meanings.
Enjoy.
SFTP(1) - Simple File Transfer Protocol - unsecrued, early FTP,
now obsolete.
SFTP(2) - Secure FTP - a command line program that implements
the client portion of the SFTP(3) protocol.
SFTP(3) - SSH FTP - a network protocol designed by the IETF to provide
secure file transfer and manipulation facilities over the secure shell
(SSH) protocol.
SSH - Secure Shell - A protocol that provides secure communication
between two untrusted hosts.
SCP - Secure Copy - an early, less robust version of SFTP
FTP over SSH - A normal FTP session tunneled over a SSH connection.
FTPS - A term to describe some methods of secure FTP transfer. See.
FTP/SSL, FTP/Implicit SSL.
Implicit SSL - an older method in which the client connects to a
different port (usually 990), and an SSL handshake is performed before
any FTP commands are sent.
FTP/SSL (explicit SLL) - same as Auth TLS?
AUTH TLS - named for the command issued to indicate that TLS security
should be used. This is the preferred method according to the RFC
defining FTP over TLS. The client connects to the server port 21 and
starts an unencrypted FTP session as normal, but requests that TLS
security be used and performs the appropriate handshake before sending
any sensitive data.
REFERENCE:
http://en.wikipedia.org/wiki/SFTP
kpg
|
|
|
|
|