473,386 Members | 1,841 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.

What is the easiest way to query a remote XML file on someone elses Linux box using secure communication?

Situation:
I have to connect with my Windows 2000 server using VS.NET 2003 and C# and
connect to a remote Linux server at another company's office and query their
XML file. Their file may be updated every hour or so. How can I do this
easily? I would like to use secure communication even encryption if
possible. I would query and insert locally only the newest records found in
that XML file to an xml or MS access db.
Jul 21 '05 #1
7 2633
SSH. Otherwise SSL over HTTP, assuming the Leenucks box has Apache and a
certificate.

SSH is just another protocol over TCP, so I suppose you could write your own
implementation, or get a third party component that wraps it for you. You
could also "automate" it with something like putty (which is an SSH client
that runs on Win32).
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:#4**************@TK2MSFTNGP09.phx.gbl...
Situation:
I have to connect with my Windows 2000 server using VS.NET 2003 and C# and
connect to a remote Linux server at another company's office and query their XML file. Their file may be updated every hour or so. How can I do this
easily? I would like to use secure communication even encryption if
possible. I would query and insert locally only the newest records found in that XML file to an xml or MS access db.

Jul 21 '05 #2
What is all involved?
Do I need a shared NTFS partition on their Linux box or a web service? What
kind of security does this support? What is putty I have never heard of
this?

thanks,
Dan
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
SSH. Otherwise SSL over HTTP, assuming the Leenucks box has Apache and a
certificate.

SSH is just another protocol over TCP, so I suppose you could write your own implementation, or get a third party component that wraps it for you. You
could also "automate" it with something like putty (which is an SSH client
that runs on Win32).
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:#4**************@TK2MSFTNGP09.phx.gbl...
Situation:
I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their
XML file. Their file may be updated every hour or so. How can I do this easily? I would like to use secure communication even encryption if
possible. I would query and insert locally only the newest records

found in
that XML file to an xml or MS access db.


Jul 21 '05 #3
I am also interested in a .NET only solution. I would love having the two
or three easiest solutions so I can pick one that I think I could do.
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
SSH. Otherwise SSL over HTTP, assuming the Leenucks box has Apache and a
certificate.

SSH is just another protocol over TCP, so I suppose you could write your own implementation, or get a third party component that wraps it for you. You
could also "automate" it with something like putty (which is an SSH client
that runs on Win32).
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:#4**************@TK2MSFTNGP09.phx.gbl...
Situation:
I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their
XML file. Their file may be updated every hour or so. How can I do this easily? I would like to use secure communication even encryption if
possible. I would query and insert locally only the newest records

found in
that XML file to an xml or MS access db.


Jul 21 '05 #4
You can't have an NTFS "share" on a Linux box. No partitions. You can have
an SMB share though. However, if you use SSH then you don't need to muck
with shares, just have the Leenucks box run sshd with the correct
permissions and all that.

Putty is an SSH client that runs on Windows:
http://www.chiark.greenend.org.uk/~sgtatham/putty/

But ultimately, yeah, you can use a share. It's just that it's very tricky
to set up Samba to serve as a file server for Windows clients. It's far
simpler to set up the other way around (Linux reading Windows shares).

But there's a whole bunch of options, really. FTP/SFTP, SSH, shares, HTTP[S]
and so on.

--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:eS*************@TK2MSFTNGP11.phx.gbl...
What is all involved?
Do I need a shared NTFS partition on their Linux box or a web service? What kind of security does this support? What is putty I have never heard of
this?

thanks,
Dan
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
SSH. Otherwise SSL over HTTP, assuming the Leenucks box has Apache and a
certificate.

SSH is just another protocol over TCP, so I suppose you could write your

own
implementation, or get a third party component that wraps it for you. You
could also "automate" it with something like putty (which is an SSH client that runs on Win32).
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:#4**************@TK2MSFTNGP09.phx.gbl...
Situation:
I have to connect with my Windows 2000 server using VS.NET 2003 and C#

and connect to a remote Linux server at another company's office and query

their
XML file. Their file may be updated every hour or so. How can I do this easily? I would like to use secure communication even encryption if
possible. I would query and insert locally only the newest records

found
in
that XML file to an xml or MS access db.



Jul 21 '05 #5
Thanks for the options, I really appreciate it!

Since we have to connect to Linux, Mac and Windows PC's remotely and
probably just copy the XML file and query it locally (as an easier
solution), I am trying to decide which is easier of the two solutions to
maintain and setup at 60 sites. These remote sites, do not usually have
anyone technical on site.

1) Secure FTP. Either SSH or something. Ideally we install the same
version of the same program on all 3 platforms on everyone's PC. We now
have to find a way to send an xml file every day or so to us. Can SSH auto
send files or run a batch file on a schedule to our ftp site? Is it true,
that SSH will use a different port that may be blocked by firewalls and SSL
over HTTP is better as 'everyone' has port 80 open? But the advantage is
that everyone is guaranteed to have a high level of encryption once
installed - I can choose the level of encryption, so it is more secure it
sounds like?

2) SSL over HTTP. I would have to do a one time buy and setup a certificate
on our server - that is OK with me. The way I understand it is the client
does not have to do anything except go to our https site and then the
encryption starts... But this is dependent on the browser's encryption
level. Clients that do not have high enough encryption will not have any
correct - or does it stop them from accessing the site? And may think they
are protected and this would be bad. Also, how could I automate on all
platforms a file to be sent to us? It would be nice to be able to have the
client get authenticated on our ASP.NET https site and then they click a
button to upload the xml file (and have the option to do this upload
automatically from now on); but does that require web/java script
programming for on the client for every platform - or can the programming be
done from our ASP.NET server and I pull the data? SSL requires cookies,
does it not, so is this is another point of potential failure?

Thanks again,
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
You can't have an NTFS "share" on a Linux box. No partitions. You can have
an SMB share though. However, if you use SSH then you don't need to muck
with shares, just have the Leenucks box run sshd with the correct
permissions and all that.

Putty is an SSH client that runs on Windows:
http://www.chiark.greenend.org.uk/~sgtatham/putty/

But ultimately, yeah, you can use a share. It's just that it's very tricky
to set up Samba to serve as a file server for Windows clients. It's far
simpler to set up the other way around (Linux reading Windows shares).

But there's a whole bunch of options, really. FTP/SFTP, SSH, shares, HTTP[S] and so on.

--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:eS*************@TK2MSFTNGP11.phx.gbl...
What is all involved?
Do I need a shared NTFS partition on their Linux box or a web service?

What
kind of security does this support? What is putty I have never heard of
this?

thanks,
Dan
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
SSH. Otherwise SSL over HTTP, assuming the Leenucks box has Apache and a certificate.

SSH is just another protocol over TCP, so I suppose you could write your
own
implementation, or get a third party component that wraps it for you. You could also "automate" it with something like putty (which is an SSH client that runs on Win32).
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:#4**************@TK2MSFTNGP09.phx.gbl...
> Situation:
> I have to connect with my Windows 2000 server using VS.NET 2003 and
C# and
> connect to a remote Linux server at another company's office and

query their
> XML file. Their file may be updated every hour or so. How can I do

this
> easily? I would like to use secure communication even encryption if
> possible. I would query and insert locally only the newest records

found
in
> that XML file to an xml or MS access db.
>
>



Jul 21 '05 #6
I'd recommend HTTPS then. It's fairly simple to set up with IIS, but yes,
you'll need a certificate. That will run you about $400, depending who you
get it from. But now we're talking about clients uploading files, not your
code going out to another machine and reading the file, correct?

The encryption strength depends on the browser. Normally for people running
fairly modern OS you can get up to 128 bits. Mozilla variants and IE support
this. But you can set up IIS to fall back to a lower bit strength if the
client does not support 128 (usually 56 bits or so).

The code would reside on your Windows server; all the clients need is a
browser. It's fairly easy to create the upload functionality using ASP.NET.
There are a lot of examples out there that show how to do this.

SSL does not require cookies, but it supports them.

--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:en*************@TK2MSFTNGP09.phx.gbl...
Thanks for the options, I really appreciate it!

Since we have to connect to Linux, Mac and Windows PC's remotely and
probably just copy the XML file and query it locally (as an easier
solution), I am trying to decide which is easier of the two solutions to
maintain and setup at 60 sites. These remote sites, do not usually have
anyone technical on site.

1) Secure FTP. Either SSH or something. Ideally we install the same
version of the same program on all 3 platforms on everyone's PC. We now
have to find a way to send an xml file every day or so to us. Can SSH auto send files or run a batch file on a schedule to our ftp site? Is it true,
that SSH will use a different port that may be blocked by firewalls and SSL over HTTP is better as 'everyone' has port 80 open? But the advantage is
that everyone is guaranteed to have a high level of encryption once
installed - I can choose the level of encryption, so it is more secure it
sounds like?

2) SSL over HTTP. I would have to do a one time buy and setup a certificate on our server - that is OK with me. The way I understand it is the client
does not have to do anything except go to our https site and then the
encryption starts... But this is dependent on the browser's encryption
level. Clients that do not have high enough encryption will not have any
correct - or does it stop them from accessing the site? And may think they
are protected and this would be bad. Also, how could I automate on all
platforms a file to be sent to us? It would be nice to be able to have the client get authenticated on our ASP.NET https site and then they click a
button to upload the xml file (and have the option to do this upload
automatically from now on); but does that require web/java script
programming for on the client for every platform - or can the programming be done from our ASP.NET server and I pull the data? SSL requires cookies,
does it not, so is this is another point of potential failure?

Thanks again,
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
You can't have an NTFS "share" on a Linux box. No partitions. You can have
an SMB share though. However, if you use SSH then you don't need to muck
with shares, just have the Leenucks box run sshd with the correct
permissions and all that.

Putty is an SSH client that runs on Windows:
http://www.chiark.greenend.org.uk/~sgtatham/putty/

But ultimately, yeah, you can use a share. It's just that it's very tricky to set up Samba to serve as a file server for Windows clients. It's far
simpler to set up the other way around (Linux reading Windows shares).

But there's a whole bunch of options, really. FTP/SFTP, SSH, shares, HTTP[S]
and so on.

--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:eS*************@TK2MSFTNGP11.phx.gbl...
What is all involved?
Do I need a shared NTFS partition on their Linux box or a web service?

What
kind of security does this support? What is putty I have never heard of this?

thanks,
Dan
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
> SSH. Otherwise SSL over HTTP, assuming the Leenucks box has Apache and a > certificate.
>
> SSH is just another protocol over TCP, so I suppose you could write your own
> implementation, or get a third party component that wraps it for
you.
You
> could also "automate" it with something like putty (which is an SSH client
> that runs on Win32).
>
>
> --
> Klaus H. Probst, MVP
> http://www.vbbox.com/
>
>
> "Dan V." <da**@yah.com> wrote in message
> news:#4**************@TK2MSFTNGP09.phx.gbl...
> > Situation:
> > I have to connect with my Windows 2000 server using VS.NET 2003

and C# and
> > connect to a remote Linux server at another company's office and query > their
> > XML file. Their file may be updated every hour or so. How can I

do this
> > easily? I would like to use secure communication even encryption if > > possible. I would query and insert locally only the newest records found
> in
> > that XML file to an xml or MS access db.
> >
> >
>
>



Jul 21 '05 #7
Thanks for the great reply!

What ever is easiest, either they upload or my code going out and copying
/querying the file. I have an example where someone manually uploads a file
by pressing a button: <input type=file id=myFile runat=server />.

Whatever is the most secure and easiest for the many remote sites, I would
think automating by me getting their data would be best, but then would
their browser have to stay open? Or do you not have to use a browser and
still get encryption with SSL?

Also this may have to be done every day.

"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:uw*************@tk2msftngp13.phx.gbl...
I'd recommend HTTPS then. It's fairly simple to set up with IIS, but yes,
you'll need a certificate. That will run you about $400, depending who you
get it from. But now we're talking about clients uploading files, not your
code going out to another machine and reading the file, correct?

The encryption strength depends on the browser. Normally for people running fairly modern OS you can get up to 128 bits. Mozilla variants and IE support this. But you can set up IIS to fall back to a lower bit strength if the
client does not support 128 (usually 56 bits or so).

The code would reside on your Windows server; all the clients need is a
browser. It's fairly easy to create the upload functionality using ASP.NET. There are a lot of examples out there that show how to do this.

SSL does not require cookies, but it supports them.

--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:en*************@TK2MSFTNGP09.phx.gbl...
Thanks for the options, I really appreciate it!

Since we have to connect to Linux, Mac and Windows PC's remotely and
probably just copy the XML file and query it locally (as an easier
solution), I am trying to decide which is easier of the two solutions to
maintain and setup at 60 sites. These remote sites, do not usually have
anyone technical on site.

1) Secure FTP. Either SSH or something. Ideally we install the same
version of the same program on all 3 platforms on everyone's PC. We now
have to find a way to send an xml file every day or so to us. Can SSH auto
send files or run a batch file on a schedule to our ftp site? Is it true, that SSH will use a different port that may be blocked by firewalls and

SSL
over HTTP is better as 'everyone' has port 80 open? But the advantage is that everyone is guaranteed to have a high level of encryption once
installed - I can choose the level of encryption, so it is more secure it sounds like?

2) SSL over HTTP. I would have to do a one time buy and setup a

certificate
on our server - that is OK with me. The way I understand it is the client does not have to do anything except go to our https site and then the
encryption starts... But this is dependent on the browser's encryption
level. Clients that do not have high enough encryption will not have any correct - or does it stop them from accessing the site? And may think they are protected and this would be bad. Also, how could I automate on all
platforms a file to be sent to us? It would be nice to be able to have

the
client get authenticated on our ASP.NET https site and then they click a
button to upload the xml file (and have the option to do this upload
automatically from now on); but does that require web/java script
programming for on the client for every platform - or can the programming be
done from our ASP.NET server and I pull the data? SSL requires cookies,
does it not, so is this is another point of potential failure?

Thanks again,
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
You can't have an NTFS "share" on a Linux box. No partitions. You can
have an SMB share though. However, if you use SSH then you don't need to muck with shares, just have the Leenucks box run sshd with the correct
permissions and all that.

Putty is an SSH client that runs on Windows:
http://www.chiark.greenend.org.uk/~sgtatham/putty/

But ultimately, yeah, you can use a share. It's just that it's very tricky to set up Samba to serve as a file server for Windows clients. It's far simpler to set up the other way around (Linux reading Windows shares).

But there's a whole bunch of options, really. FTP/SFTP, SSH, shares,

HTTP[S]
and so on.

--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Dan V." <da**@yah.com> wrote in message
news:eS*************@TK2MSFTNGP11.phx.gbl...
> What is all involved?
> Do I need a shared NTFS partition on their Linux box or a web service? What
> kind of security does this support? What is putty I have never heard of
> this?
>
> thanks,
> Dan
>
>
> "Klaus H. Probst" <us*******@vbbox.com> wrote in message
> news:et**************@TK2MSFTNGP11.phx.gbl...
> > SSH. Otherwise SSL over HTTP, assuming the Leenucks box has Apache and
a
> > certificate.
> >
> > SSH is just another protocol over TCP, so I suppose you could
write your
> own
> > implementation, or get a third party component that wraps it for

you. You
> > could also "automate" it with something like putty (which is an
SSH client
> > that runs on Win32).
> >
> >
> > --
> > Klaus H. Probst, MVP
> > http://www.vbbox.com/
> >
> >
> > "Dan V." <da**@yah.com> wrote in message
> > news:#4**************@TK2MSFTNGP09.phx.gbl...
> > > Situation:
> > > I have to connect with my Windows 2000 server using VS.NET 2003

and
C#
> and
> > > connect to a remote Linux server at another company's office and

query
> > their
> > > XML file. Their file may be updated every hour or so. How can

I do > this
> > > easily? I would like to use secure communication even
encryption
if > > > possible. I would query and insert locally only the newest records > found
> > in
> > > that XML file to an xml or MS access db.
> > >
> > >
> >
> >
>
>



Jul 21 '05 #8

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

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
2
by: jake | last post by:
How can I copy a file securely (encryption) from remote computers easily (Mac and Linux) to my Win 2000 Server once a day?
1
by: dtblankenship | last post by:
Hello all, I am creating an application which must send an email once all has been submitted to the user with a confirmation. In my workplace, we're required to use a remote SSL SMTP server to...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
3
by: Harlin | last post by:
Hi, I installed the admin client on my WebSphere box. I am now attempting to connect to my DB2 server (on another box). I have been able to find the DB2 server, instance and needed databases....
6
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows...
13
by: Kyle Adams | last post by:
I don't know where is the right place to ask this so I will start here. Can someone explain to me what these represent? I think they all have to do with the middleware level, but I really don't...
7
by: Dan V. | last post by:
Situation: I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their XML file. Their file may be...
2
by: thilandeneth | last post by:
i need to do telnet via a web server please give me a idia to initiate the project following requirements are needed 1 Create web based custom telnet client to communicate with remote...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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
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...

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.