473,386 Members | 2,042 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,386 software developers and data experts.

FTP with SSL

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.

Apr 19 '06 #1
19 6519

"Hugh Janus" <my*************@hotmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
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?
Apr 19 '06 #2

Mike Lowery wrote:
"Hugh Janus" <my*************@hotmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
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?


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

Apr 19 '06 #3

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...

Hugh Janus wrote:
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.

Apr 19 '06 #4

John A. Bailo wrote:
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

Apr 19 '06 #5

"Hugh Janus" <my*************@hotmail.com> wrote in message
news:11*********************@u72g2000cwu.googlegro ups.com...

John A. Bailo wrote:
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!


Here's another one (may not support file xfer):
http://granados.sourceforge.net/
Apr 20 '06 #6
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

Apr 20 '06 #7
On 20 Apr 2006 08:31:02 -0700, "Hugh Janus"
<my*************@hotmail.com> wrote:
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


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: xL*******@xceedsoft.com (remove the first 'x')
Apr 20 '06 #8
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!

Apr 21 '06 #9
On 20 Apr 2006 23:46:05 -0700, "Hugh Janus"
<my*************@hotmail.com> wrote:
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!


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: xL*******@xceedsoft.com (remove the first 'x')
Apr 21 '06 #10
> 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: xL*******@xceedsoft.com (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

Apr 25 '06 #11
>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 :)
Apr 25 '06 #12
>
Got it, and replied :)


:-( Something is going astray because I don't have it! To confirm, my
email is my*************@hotmail.com

Hugh

Apr 26 '06 #13
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/SourceV...ransferTest.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

Apr 26 '06 #14

ta******@gmail.com wrote:
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/SourceV...ransferTest.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

Apr 26 '06 #15

AlexL [Xceed] wrote:
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 :)


Alex,

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

Hugh

May 3 '06 #16
On 3 May 2006 03:58:42 -0700, "Hugh Janus"
<my*************@hotmail.com> wrote:

AlexL [Xceed] wrote:
>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 :)


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.

--
Alex Leblanc
Xceed Software Inc.
May 3 '06 #17

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

*** Sent via Developersdex http://www.developersdex.com ***
May 3 '06 #18
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.

--
Alex Leblanc
Xceed Software Inc.


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

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

Thanks!

May 4 '06 #19
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?
(hu********@hotmail.co.uk)

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).
Hugh Janus wrote:
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.

--
Alex Leblanc
Xceed Software Inc.


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

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

Thanks!


May 16 '06 #20

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.