[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

SSH And Sftp in C#

Posted on 2010-11-08
4
Medium Priority
?
900 Views
Last Modified: 2013-11-15
Hi Experts.

I have a question about SSH and Sftp..

We are going to build a Client that collects data about the system... Cpu Usage, Disk usage, memory and further on.. This has to be sent to a SSH server via Sftp. This is done through C# via a libary(Chilkat) and works very well.. I use Cygwin as SSH server on 2003 R2 x64.

The collected data has to be submitted to our SQL server database and We have a website which is connected to this database and our customer can see these data via a website.

I have a pretty good idea how i shall do this, but i want to get some advise(s) from you.

My plan is as follows:

1. Collect the data on the client. Create a Sftp connection to the SSH.
2. Create the file on the server and write to it.
The file has some parameters(clientname, servername, and data category(for example CPU Data).

3. A FileSystemWatcher service is writting in C# and looks in these folders where the data is uploaded. The FileSystemWatcher has code that has the Regex Class to look for Patterns(Data category,Client name, servername).
4. These data is submitted to the database by the patters that is corrosponding to the patterns.. For Example Client name pattern is submitted into the Client_Name Column in the Database and so on..

This sounds very simple, but i don't think so hehe :)

Do some of you now how to add users to Cygwin SSHD?

This is in C# and the client has a service scheduler that is determind by the end user when to upload and what to upload.
0
Comment
Question by:databoks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
JESii earned 1000 total points
ID: 34086819
"Do some of you now how to add users to Cygwin SSHD?" --

Not sure if this is the solution, but check out this one:
  http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html
0
 
LVL 8

Author Comment

by:databoks
ID: 34091248
This is a good solution but it doesnt show me how to create a user to login with. Fx i would like to create a user to sftp file transfering.

0
 
LVL 8

Author Closing Comment

by:databoks
ID: 34134382
What about the C# i asked about?
0
 
LVL 12

Expert Comment

by:JESii
ID: 34135531
I'm not a C# guy, so couldn't help with that, but I'm glad that what I provided was useful. Thanks for the points!
0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . If you have responsibility for software in production, I bet you’d like to know more about it. I don’t mean that you’d like an extra peek into the bowels of the sourc…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question