473,840 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Working with SFTP

As i noticed, there's no built-in facility
for working with SFTP in DotNet. So, i'd
like to learn how to build that up. When i
went googling for knowledge, i only get a
ton of hits on tutorials for specific,
already existing packages.

The problem is that i'd like to learn how
set up such a communication myself. Any
pointers? (Please note that googling for
"c# sftp ssh tutorial" won't give you much
joy, sadly...)

--
Regards
Konrad Viltersten
----------------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.
Oct 17 '08 #1
7 12307
First result for "C# SSH library":
http://www.codeproject.com/KB/IP/sharpssh.aspx
HTH,
Mike
Hmm... I'l try that right away, of course,
and, while being thankful for the help, i
can't stop wondering why you omitted "SFTP"
in your search. Is "SSH" and "SFTP"
equivalent terms?

--
Regards
Konrad Viltersten
----------------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.
"Michael B. Trausch" <mi**@trausch.u sskrev i meddelandet
news:2008101701 5836.3e26bd46@z est...
Oct 17 '08 #2
Is "SSH" and "SFTP" equivalent terms?

Related, certainly: SFTP is FTP over SSH; FTPS is FTP over SSL.

Marc
Oct 17 '08 #3
>>First result for "C# SSH library":
>>http://www.codeproject.com/KB/IP/sharpssh.aspx
HTH,
Mike

Hmm... I'l try that right away, of course,
and, while being thankful for the help, i
can't stop wondering why you omitted "SFTP"
in your search. Is "SSH" and "SFTP"
equivalent terms?

SSH is a transport mechanism, which can do secure
remote shells (a replacement for telnet/rsh, and
probably the most popular application of the SSH
protocol), and it has two more-or-less
"subprotoco ls," SCP (replaces rcp) and SFTP
(replaces FTP and is designed for more human-based
interaction). SSH can also tunnel arbitrary
information between machines for anything that
isn't inherently secure by way of SSL or some
other form of encryption mechanism.
SCP is more tightly tethered to SSH, while SFTP can
be used over other secure protocols. See the
Wikipedia articles covering the topics for an
overview:
http://en.wikipedia.org/wiki/Secure_Shell
http://en.wikipedia.org/wiki/SSH_file_transfer_protocol
http://en.wikipedia.org/wiki/Secure_copy
Thanks. I'll need to keep looking though. The
example you've found is only a wrapper for an
already existing JSSH-library, while i'm aiming
at getting it done myself.

Nevertheless, thanks a lot.

--
Regards
Konrad Viltersten
----------------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.
"Michael B. Trausch" <mi**@trausch.u sskrev i meddelandet
news:2008101702 3411.5355d77d@z est...
Oct 17 '08 #4
On 10/16/2008 11:21 PM, K Viltersten wrote:
>First result for "C# SSH library":
http://www.codeproject.com/KB/IP/sharpssh.aspx
HTH,
Mike

Hmm... I'l try that right away, of course,
and, while being thankful for the help, i
can't stop wondering why you omitted "SFTP"
in your search. Is "SSH" and "SFTP"
equivalent terms?
SFTP is FTP over SSH...
FTPS is FTP + SSL...

--
Michael J. Ryan - tracker1(at)the roughnecks(dot) net - www.theroughnecks.net
icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)

.... Immortality lies not in the things you leave behind, but in the people
your life has touched.
Oct 17 '08 #5
On 10/16/2008 11:33 PM, Marc Gravell wrote:
>Is "SSH" and "SFTP" equivalent terms?

Related, certainly: SFTP is FTP over SSH; FTPS is FTP over SSL.

Marc
What he said.. :)

--
Michael J. Ryan - tracker1(at)the roughnecks(dot) net - www.theroughnecks.net
icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)

.... FRA #094: Females and finances don't mix.
Oct 17 '08 #6
On Oct 17, 3:42*pm, "K Viltersten" <t...@vilterste n.comwrote:
As i noticed, there's no built-in facility
for working withSFTPin DotNet. So, i'd
like to learn how to build that up. When i
went googling for knowledge, i only get a
ton of hits on tutorials for specific,
already existing packages.
As others have said SFTP is a subsystem of SSH. You establish an SSH
connection, and SFTP consists of a series
of messages encapsulated within SSH messages.

It is a pretty major effort actually implementing it yourself.

It sounds like you may not be interested in commercial packages, but
just in case ... take a look at edtFTPnet/PRO

http://www.enterprisedt.com/products.../overview.html

It supports both SFTP and FTPS - you can easily swap between the two
protocols.

regards

Bruce Blackshaw


Oct 17 '08 #7
>Thanks. I'll need to keep looking though. The
>example you've found is only a wrapper for an
already existing JSSH-library, while i'm aiming
at getting it done myself.

Nevertheless , thanks a lot.

Uhm.
Did you not look at the source code?
It's a *port* of an SSH library from Java to C#.
Of course i looked at the code. Perhaps i was too
hasty in my judgement but what i understood was
that it was merely a wrapper for the Java
version. Maybe i should check that out again...
It isn't a wrapper. From the site:
"After experimenting with an open source Java
SSH library called JSch I decided to try and
port it to C# just for the sake of exercise. The
result is the attached sharpSsh library and this
article which explains how to use it."

An updated version of the SharpSSH library is
available on the author's Web site, as well:
http://www.tamirgal.com/home/dev.aspx?Item=sharpSsh
All right. I guess i got scared and/or confused.
I'll look into that again. Thanks.

By the way, what's up with your mail client? It
seems that all the answers come as attachments,
instead of plainly seeable text. Perhaps it's MY
mail client that sucks...

--
Regards
Konrad Viltersten
--------------------------------
sleep - a substitute for coffee for the poor
ambition - lack of sense to be lazy

Oct 19 '08 #8

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

Similar topics

3
4170
by: Gus M. Creces | last post by:
Hi... I'm looking for some information, technical, white paper - whatever - on how SFTP works. I need to add SFTP capabilities into an app's present FTP capabilities. I'm not really looking for a 3rd party solution, like a plug in. Would prefer to write the code in C++ or C#. Just haven't found much technical information on the topic. Thanks in advance for any suggestions, leads in the right direction.
4
2445
by: Luke Vogel | last post by:
I've looked everywhere ... Is there anywhere that has the source code for a SFTP client that I can modify for my needs? Please? -- Regards Luke. -----
0
4694
by: Bernhard Günther | last post by:
Hello friends of php, PhP-Version is 4 on a FreeBSD-System using apache. Got a problem using ssh2.sftp. Installed correctly (libssh2, ssh2.so-module). Connecting with publickey works, sftp subsystem-connect works too:
7
15424
by: RadhakrishnanR | last post by:
How i can implement SFTP in VB. Scenario is I want to take file from SFTP server, then after some process with the file , file will be moved to database.. Our requirement is very clear that how to use SFTP in VB, currently we are using the OS-native FTP functionality, for SFTP there is no OS-native functionality. And we are not using any third party tool. In VB is it possible to accomplish this job.? If not could u give the reason. ...
12
15683
by: jcor | last post by:
Hi, I'm using Ubuntu 7.04. I'm writing a sript that sends files via ftp for several destinations. So far I used Net::FTP and it worked fine. My problem is that I need to send files via SFTP (SSH2). I've been trying to install Net::SFTP with 'sudo perl -MCPAN -e "install NET::SFTP' but I can't. It stops in the middle of the installation: Crypt-DH-0.06/t/ Crypt-DH-0.06/t/00-compile.t
0
1890
by: arkascha | last post by:
Helloooo everyone, I have a problem with a small solution I made some three or four years ago. Worked flawless until deployed onto newer machines now and guess what, I cannot fix it. Maybe some guru here can give this a look and tell a stupid newbie like me what I miss... The strategy is to have some kind of a shell-like wrapper and work interactively with it from my php scripts. So I setup a wrapper object and can write a command and...
4
4721
by: sa6113 | last post by:
I want to use sftp from paramiko to copy a file from a windows machine to a Linux in the network, I use this code : host = "LinuxComputerName" (or its Ip) port = 22 transport = paramiko.Transport((host, port)) password = "LinuxComputerPassword" username = "LinuxComputerUserName" transport.connect(username = username, password = password)
2
3835
by: sivashanmugam | last post by:
Hi Friends, I tried to send some zips from local to remote location but the transfer is not sucess i can transfer the zips partially can some one assist me how to make it as sucess i had used the below code #!/bin/sh /usr/local/bin/expect <<EOF
1
8283
by: ndedhia1 | last post by:
I was hoping you could help me out with ftp vs sftp. Below is a method that I have that I call to ftp files from one unix box to another in house, but soon, we will have to ftp from here to NY so we have to start using sftp. I know that we have open ssh on our unix boxes but was wondering how different the syntax would be, going from ftp to sftp. Here is a method that I have written in my java code for ftping a file to a specific...
0
9860
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9699
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10603
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9440
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7838
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7023
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4076
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3138
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.