FTP with SSL

H

Hugh Janus

Hi group,

Has anyone ever used the Indy project to ftp files over SSL? I have a
requirement to securely transfer files and it is proving too hard!

My inital reaction was to use SSH/SFTP but this is impossible for me
and the only other option is to use a 3rd-party component. I am
looking at the Indy project and it *looks* like it has the capability.

Anyone know if it is possible and could share some code or some hel?

TIA,
Hugh

P.S. I cannot use any components that requiring paying for because I
have been told that this is not allowed.
 
M

Mike Lowery

Hugh Janus said:
Hi group,

Has anyone ever used the Indy project to ftp files over SSL? I have a
requirement to securely transfer files and it is proving too hard!

My inital reaction was to use SSH/SFTP but this is impossible for me<snip>

Why?
 
H

Hugh Janus

Mike said:

Because it will require a 3rd-parth add-in to upload/download files
which I am not allowed to use. Unless perhaps you know of published
source code that does this that I could include?

I thought FTP using SSL might be a better option because FTP is
something that already has published examples form Microsoft and can be
done within .NET code.

Hugh
 
H

Hugh Janus

John said:
I've used this library:

sharpSsh - A Secure Shell (SSH) library for .NET
By Tamir Gal
http://www.codeproject.com/csharp/sharpssh.asp

Successfully for sftp, but it supports SSH as well...

Hmmm, I had been looking at this this afternoon. Unless I am being a
bit dim, I could not seem to work it out. :-(
I added the solution to my project, but could not work out how to
establish a connection. Would you be willing to publish some code on
how to make a connection? The more the better please!

I am most interested in knowing how to do SSH & SFTP so if this works
out, my problem is solved!

TIA
 
M

Mike Lowery

Hugh Janus said:
Hmmm, I had been looking at this this afternoon. Unless I am being a
bit dim, I could not seem to work it out. :-(
I added the solution to my project, but could not work out how to
establish a connection. Would you be willing to publish some code on
how to make a connection? The more the better please!

I am most interested in knowing how to do SSH & SFTP so if this works
out, my problem is solved!

Here's another one (may not support file xfer):
http://granados.sourceforge.net/
 
H

Hugh Janus

Here's another one (may not support file xfer):
http://granados.sourceforge.net/

Yes, I tried this also but it totally lacks documentation and looks
like development has died. I think I can work around the SFTP problem
but a requirement remains for SSH.

If you have any code or examples etc using Granados, that would be
excellent. Otherwise, any other ideas? This has me stumped :-(

Thanks
 
A

AlexL [Xceed]

Yes, I tried this also but it totally lacks documentation and looks
like development has died. I think I can work around the SFTP problem
but a requirement remains for SSH.

If you have any code or examples etc using Granados, that would be
excellent. Otherwise, any other ideas? This has me stumped :-(

Thanks

I'm curious to find out why you are not allowed to use a 3rd-party
component, but you are allowed to use code or components found on free
sites?

(Is this for a school project? Is this for an open-source project? Is
your budget limited, but time to accomplish the project not so
limited?)

I'm dying to offer you our solution, but you said you can't use
3rd-party add-ins. Am I correct to assume you consider a 3rd-party
component as part of your add-in restriction?


--
Alex Leblanc
Xceed Software Inc.
http://www.xceedsoft.com

Check out our multi-talented .NET zip compression library

Email: (e-mail address removed) (remove the first 'x')
 
H

Hugh Janus

I'm curious to find out why you are not allowed to use a 3rd-party
component, but you are allowed to use code or components found on free
sites?

(Is this for a school project? Is this for an open-source project? Is
your budget limited, but time to accomplish the project not so
limited?)

I'm dying to offer you our solution, but you said you can't use
3rd-party add-ins. Am I correct to assume you consider a 3rd-party
component as part of your add-in restriction?

It is simply because I want to be able to distribute a single
executable if possible. That is why I was looking at Granados and
SharpSSH because I can add those projects into my solution and compile
to a single executable. Also, it comes down to the amount of money I
have, i.e. very little! That is another reason why I am looking for a
'cheap' alternative.
Granados looked perfect but lacks documentation and it seems to have
died anyway. SharpSSH looks very promising, I am just hoping that
someone can give me some sample code on how to make a connection etc.
with it.

Failing that, any good solution will do!
 
A

AlexL [Xceed]

It is simply because I want to be able to distribute a single
executable if possible. That is why I was looking at Granados and
SharpSSH because I can add those projects into my solution and compile
to a single executable. Also, it comes down to the amount of money I
have, i.e. very little! That is another reason why I am looking for a
'cheap' alternative.
Granados looked perfect but lacks documentation and it seems to have
died anyway. SharpSSH looks very promising, I am just hoping that
someone can give me some sample code on how to make a connection etc.
with it.

Failing that, any good solution will do!

I see... Thanks for clearing that up. These days, a lot of 3rd-party
components do offer source code (we do, but its an extra $100). That
said, are you sure the Indy project couldn't solve your needs?

If not, write to me at the email address below, I may have a solution
for you, one that I cannot post publicly, though.

--
Alex Leblanc
Xceed Software Inc.
http://www.xceedsoft.com

Check out our multi-talented Windows Forms.NET grid with built-in reporting.

Email: (e-mail address removed) (remove the first 'x')
 
H

Hugh Janus

I see... Thanks for clearing that up. These days, a lot of 3rd-party
components do offer source code (we do, but its an extra $100). That
said, are you sure the Indy project couldn't solve your needs?

If not, write to me at the email address below, I may have a solution
for you, one that I cannot post publicly, though.

--
Alex Leblanc
Xceed Software Inc.
http://www.xceedsoft.com

Check out our multi-talented Windows Forms.NET grid with built-in reporting.

Email: (e-mail address removed) (remove the first 'x')

Alex,

Thanks for your help. I emailed you a few days ago but have not yet
received a reply. I hope that you got the email and it did not get
filtered as spam or something, after all, it is from a hotmail address!
My address is the same as the one used for this newsgroup.
If you did not get my email, could you please email me directly or post
here again and i'll resend my mail.

TIA,
Hugh
 
A

AlexL [Xceed]

Alex,
Thanks for your help. I emailed you a few days ago but have not yet
received a reply. I hope that you got the email and it did not get
filtered as spam or something, after all, it is from a hotmail address!
My address is the same as the one used for this newsgroup.
If you did not get my email, could you please email me directly or post
here again and i'll resend my mail.

TIA,
Hugh

Got it, and replied :)
 
T

tamirgal

What issues did you have with SharpSSH?
The library comes with lots of examples.

Please download the latest version and examples at:
http://www.tamirgal.com/home/dev.aspx?Item=SharpSsh

Also, you can browse the online examples for file transfer at:
http://www.tamirgal.com/home/SourceView.aspx?Item=SharpSSH&File=SshFileTransferTest.cs

In any case, tranferring a file using FTP with SharpSSH should be as
simple as:

Sftp sftp = new Sftp("host", "user", "pass");
sftp.Connect();
sftp.Put(localfile, remotefile);
sftp.Get(remotefile, localpath);
sftp.Close();

Similarly, you can use the SCP trasfer protocol (for OpenSSH like
servers).

Hope it helps,
Tamir
 
H

Hugh Janus

What issues did you have with SharpSSH?
The library comes with lots of examples.

Please download the latest version and examples at:
http://www.tamirgal.com/home/dev.aspx?Item=SharpSsh

Also, you can browse the online examples for file transfer at:
http://www.tamirgal.com/home/SourceView.aspx?Item=SharpSSH&File=SshFileTransferTest.cs

In any case, tranferring a file using FTP with SharpSSH should be as
simple as:

Sftp sftp = new Sftp("host", "user", "pass");
sftp.Connect();
sftp.Put(localfile, remotefile);
sftp.Get(remotefile, localpath);
sftp.Close();

Similarly, you can use the SCP trasfer protocol (for OpenSSH like
servers).

Hope it helps,
Tamir

Hi Tamir,

SharpSSH looks great. The only problems I had were probably partly my
fault. The problem(s) were:

- I could not work out how to establish an SSH & and SFTP connection.
- I could not work out how to capture the upload progress of a
transfer. i.e. the percentage of the file uploaded so far.
- I did not want to carry an extra DLL, I wanted to be able to compile
code directly into my .EXE

Does SharpSSH allow me to do this? Can you help with this? Code would
be super!!!!

Thanks,
Hugh
 
H

Hugh Janus

AlexL said:
Got it, and replied :)

Alex,

A shame that I never received your email. I am still very interested
in this. Please try to resend your email.

Hugh
 
A

AlexL [Xceed]

Alex,

A shame that I never received your email. I am still very interested
in this. Please try to resend your email.

Hugh

Hi Hugh,

It appears I am not able to communicate with "my-junk-account" at
hotmail. If you have another email address, we should use that one.

Others: Sorry for the newsgroup polution.
 
J

Jeethu Joseph

Hi,
If you are concerned with the data transfer for security and wanted
to do that without FTP you can always go for WebDav which will give u
security over http and folder level NTFS permissions.

Jeethu Joseph
IIS/Asp.Net Engineer Microsoft
http://jeethujoseph.blogspot.com
 
H

Hugh Janus

Hi Hugh,

It appears I am not able to communicate with "my-junk-account" at
hotmail. If you have another email address, we should use that one.

Others: Sorry for the newsgroup polution.

Bummer, oh well, here goes my internet newsgroup spam anonimity :-(

Send it to hughjannes-at-hotmail-dot-co-dot-uk without any hyphens.

Thanks!
 
H

Hugh Janus

Alex,

I think my mails to you are going to your junk folder. I am trying to
reply to your email. Could you please check your mailbox for my
mail(s) and reply to me at my hotmail address?
([email protected])

Hugh

(group, sorry for the use of this group for messages like this but this
is the only way of contacting Alex. This will be the last message).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top